cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: LibCurl - Form post using HTTPPOST and CURLOPT_FOLLOWLOCATION

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 11 Aug 2004 11:00:13 +0200 (CEST)

On Tue, 10 Aug 2004, Steven Cheung wrote:

> Hi all, can anyone help me?

I can certainly try! What libcurl version on what operating system? If not the
latest, have you tried a later version?

> I'm trying to post some data using the HTTPPOST option to an alias URL. This
> usually takes me to an 302 Found html page, with a link to the actual URL
> location.
>
> I've set up the option CURLOPT_FOLLOWLOCATION to follow the location until
> it reaches the "final" URL without stopping at the 302 Found html page.
>
> However on the server side, when receiving, the post data is not there!
> Simplies vanishes!

Have you verified that the data is transmitted over the network? Can you
perform the post with the curl command line tool and the --trace option?

> I tried calling the actual URL rather than the alias one (which re-directs
> to the actual one) and the form post data is there and works fine.

It suggests that there's a problem in how libcurl deals with the redirect,
yes.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-11