Commit d83258ba authored by Daniel Kraft's avatar Daniel Kraft
Browse files

Use CURLAUTH_BASIC for RPC connection.

This fixes a failure with the new HTTP server in Bitcoin Core.
parent fdfaa0f3
<?php
/*
NameID, a namecoin based OpenID identity provider.
Copyright (C) 2013 by Daniel Kraft <d@domob.eu>
Copyright (C) 2013,2015 by Daniel Kraft <d@domob.eu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
......@@ -240,7 +240,7 @@ class HttpNamecoin extends NamecoinRpc
curl_setopt ($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt ($ch, CURLOPT_USERAGENT, "NameID PHP Identity-Provider");
curl_setopt ($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt ($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt ($ch, CURLOPT_USERPWD, "{$this->user}:{$this->password}");
$res = curl_exec ($ch);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment