cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: 505 error from Amazon FPS

From: Stephen Pynenburg <spynenburg_at_gmail.com>
Date: Sun, 10 Aug 2008 21:54:51 -0400

If your PHP is <v5.1.3, then CURLINFO_HEADER_OUT doesn't exist, however cURL
is very forgiving and just ignores bad instructions. Check your version, and
let us know if that's the issue or not.

-Stephen

On Sun, Aug 10, 2008 at 8:04 PM, Dan Heron Myers <heron_at_xnapid.com> wrote:

> I'm trying to use curl in php to interact with Amazon's Flexible Payment
> Service. I keep getting a 505 error (HTTP version not supported) as the
> only response. I've gathered that Amazon's web service servers return a 505
> if the request is malformed (e.g. for Amazon S3, if there is an extra space
> between the target uri and the http version for a GET request).
>
> My question is, is there a way to get the exact request string sent by
> curl? I've tried using curl_setopt($curl, CURLOPT_HEADER_OUT, true) but
> curl_getinfo($curl, CURLINFO_HEADER_OUT) still returns a blank string...
>
> Thanks,
> Dan "Heron" Myers
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-08-11