I’m trying to upload an image to an S3 bucket using the version 3 of the SDK, but I receive the following error: Error executing “PutObject” on “https://s3.Ireland.amazonaws.com/my-bucket-name/…
Tag: curl
Can you include raw JSON in Guzzle POST Body?
This should be soo simple but I have spent hours searching for the answer and am truly stuck. I am building a basic Laravel application and am using Guzzle to replace the CURL request I am making at …
Guzzle returns cURL error 3: malformed
I want to try out the guzzle library and am following through their quickstart tutorial to make http requests to an api. Yet it doesn’t seem to work, because I get the following error: Since I have never worked with cURL before, I don’t even know how to respond to that error message. Here is my code with the request
PHP [function.file-get-contents]: Failed to open stream
This is really annoying me, the php script was working and returning the weather from open weather map but literally all of a sudden the php script takes forever to execute and the following error is …
Paypal IPN: certificate verify failed
Since yesterday I’m unable to receive paypal ipn notifications. I’ve check the log file and the error is: [24-Mar-2015 13:48:44] cURL error: [60] SSL certificate problem, verify that the CA cert is …
PHP Built-In Server Can’t cURL
I have a relatively simple script like the following: When I execute it on the command line, it works – I get the meager results from within test.html. When I run this script by loading up the built-in PHP server and browsing to the script, it hangs. No output to the screen, nothing written to the logs. I read that
PHP cURL: CURLOPT_CONNECTTIMEOUT vs CURLOPT_TIMEOUT
PHP has these two options related to timeout: CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT. The descriptions on the PHP site are a bit vague. What’s the difference? To use a real world example: say you’re sending GET vars to a URL via cURL and you want to receive a XML back, would CURLOPT_CONNECTTIMEOUT relate to the maximum amount of time it can take
Where to store cookies safely on Linux
I’m running curl from PHP and I want to use cookies. Curl, in PHP, accept the option COOKIEJAR that specifies the location where to save the cookie. I wanted to set it to curl_setopt_array( …
cURL redirect request to amazon s3 returns 400 code
Using PHP curl to fetch a release tag file from github. Github responds with a redirect header to S3 which cURL does follow. For example: Results in a 302 with a location header to s3 with various authentication details Following the redirect location header, Amazon responds with 400 Request specific response headers cannot be used for anonymous GET requests. As
Responses is empty while calling web services via zend framework 2.3
I am a newbie in zendframework 2.3. In my app i need to call web services. and i used class ZendHttpClient() … everything is fine… but reponse is empty.. It works in curl call via core php Answer You could use directly the Http Client by setting the CURLOPT_POST and CURLOP_POSTFIELDS options in the Client and not in the Adapter,