Questions tagged [buzz]

Buzz is a lightweight php framework for HTTP requests. It can be used to proceed http requests (all methods supported) or to simulate a browser including support for sessions and cookies.

19 questions
4
votes
1 answer

Unknown authorization header error with Buzz API - Using Zend OAuth

Here's the response I keep getting when trying to create a new activity: {"error":{"errors":[{"message":"Unknown authorization header","locationType":"header","location":"Authorization"}],"code": 401,"message":"Unknown authorization…
xil3
  • 16,305
  • 8
  • 63
  • 97
4
votes
1 answer

How to send file data as post parameter in BuzzBrowser post call

I am using Buzz Browser for calling POST method. I am receiving a file from client at one of the end point. $fileObj = $requestObject->files->get('image_data'); This is correct fileObject. I have verified this using is_file() method. Now, I have to…
Vivek Vardhan
  • 1,118
  • 3
  • 21
  • 44
2
votes
1 answer

Buzz php HTTP-Client:setting a cookie value

is it possible to set a specific Value for the cookie, before fetching a page using the Buzz php light weight client? https://github.com/kriswallsmith/Buzz i want to set splash = 0 for a specific host, to avoid a pop-up they have.
Confidence
  • 2,283
  • 3
  • 33
  • 57
2
votes
2 answers

Code for sharing buttons to facebook, twitter and buzz with counter

I am looking for the code to implement share buttons for twitter, buzz and facebook with a counter like youtube have in their share option, please see the screen shot. I’ve been looking over some codes but none of them does exactly what I want,…
Emil Devantie Brockdorff
  • 4,724
  • 12
  • 59
  • 76
2
votes
1 answer

symfony2 Get exact content from BuzzBundle response

How can I get exact content from BuzzBundle without header or other information currently I am using , $buzz = $this->container->get('buzz'); $response = $buzz->get('http://api.ipify.org?format=json'); echo $response; and output is, HTTP/1.1…
Straw Hat
  • 902
  • 14
  • 38
2
votes
1 answer

Symfony2 : no extension to load Buzz

I'm facing an issue while trying to use Curl in Buzz for Symfony2 (I've finally managed to install it, see this post). I use it it one on my bundles, and I've updated services.yml, adding these : # cURL client for Buzz buzz.client.curl: class: …
Gabriel Theron
  • 1,346
  • 3
  • 20
  • 49
1
vote
1 answer

What is the cookieJar?

What is the cookie Jar class from Buzz used for? https://github.com/kriswallsmith/Buzz/blob/master/lib/Buzz/Cookie/Jar.php For example when I'm making a request: $browser = new Buzz\Browser(); $response = $browser->get('http://www.google.com'); How…
ellabeauty
  • 2,529
  • 3
  • 21
  • 25
1
vote
0 answers

Send file via Buzz\Browser

I'm using Symfony with Buzz\Browser vendor, I need to send file to my Slack channel via POST. This's the Slack method that I should call: Slack file upload This's my code: public function uploadFile(array $channels, File $file, $initial_comment =…
Mintendo
  • 557
  • 1
  • 8
  • 24
1
vote
0 answers

Google Chrome Gamepad JavaScript API with Playstation Buzz Controller

Google Chrome GamePad API Bug I think there must be somewhere a bug in the javascript Google Chrome gamepad api. I am using the USB playstation BUZZ! buzzer (20 buttons) controller. The first button gp.buttons[0].pressed is always pressed even if…
nischi
  • 11
  • 3
1
vote
1 answer

Change defaults for kriswallsmith/Buzz browser

How can i change the request options for a call with a Buzz Browser instance? I would like to add a longer timeout to the call. Right now it triggers and exception if the legacy server takes longer then x seconds. I would like to prolong this…
m038
  • 21
  • 3
1
vote
1 answer

Using a proxy server with Buzz

Question: How can a proxy server be used with Buzz? The commit that added support for proxy can be found here. However, it no longer seems to be available in the latest commit.
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
1
vote
1 answer

Class 'Geocoder\HttpAdapter\BuzzHttpAdapter' not found

I installed the geocoder-php composer package using php composer.phar install. I'm running on PHP framework Laravel. Loading composer repositories with package information Installing dependencies - Installing willdurand/geocoder (1.0.10) …
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
1
vote
1 answer

Setter injection doesn't work in Symfony 2 with Buzz browser client?

I'm using kriswallsmith/Buzz browser inside my custom service Skebby. Here is config.yml, please note the call to setVerifyPeer(false) to disable SSL certificate verification: # cURL client buzz.client.curl: class: Buzz\Client\Curl public:…
gremo
  • 47,186
  • 75
  • 257
  • 421
0
votes
1 answer

Guzzle PSR7 request with multipart/form-data

I created a simple API in Lumen (application A) which: receives PSR-7 request interface replaces URI of the request to the application B and sends the request through Guzzle. public function apiMethod(ServerRequestInterface $psrRequest) { $url…
kmasalski
  • 238
  • 4
  • 17
0
votes
0 answers

Buzz - disabling SSL verification in POST request

How to disable SSL verification in POST request using Buzz php library? Founded here: Buzz - Scripted HTTP browser I want to achieve something like using cURL with "-k" flag.
fabtosz
  • 197
  • 3
  • 15
1
2