Closed tsusanka closed 10 years ago
Thanks for reporting. In my situation it helped to use a different browser client from Buzz: the Curl client. You could try that first before we dive in deeper.
Yes indeed! It helped, curl is working as a charm. Thx
I am also facing the same issue. Could you please help what changes you made for using curl..
Got it Worked for me Thanks for great library
For completeness' sake, instead of:
use Buzz\Browser;
$browser = new Browser();
provide an explicit client, other than the default FileGetContents
client:
use Buzz\Client\Curl;
$client = new Curl();
$browser = new Browser($client);
Thanks I used: $browser->setClient($curl); instead, works for me the same way
You're welcome and that's right :)
Hi, thx for great library. I am not sure if this is an issue or just my problem.
I've installed the library and tried your example in the readme. However I am getting a MatthiasNoback\Exception\RequestFailedException with message:
Request failed: file_get_contents(https://datamarket.accesscontrol.windows.net/v2/OAuth2-13): failed to open stream: operation failed
I've dumped the arguments in Browser and the url is
https://datamarket.accesscontrol.windows.net/v2/OAuth2-13
, headers are empty and content is equal toclient_id=id&client_secret=secret&scope=http%3A%2F%2Fapi.microsofttranslator.com&grant_type=client_credentials
.I have a kind of fresh php install, is there some special module/extension I need?
php 5.4.24 ubuntu 12.04 LTS
Thx in advance for any help.