cURL / Mailing Lists / curl-library / Single Mail

curl-library

LibCurl - Form post using HTTPPOST and CURLOPT_FOLLOWLOCATION

From: Steven Cheung <steven.cheung_at_decisionworks.co.uk>
Date: Tue, 10 Aug 2004 16:52:49 +0100

Hi all, can anyone help me?

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!

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.

Can anyone help please? I really like to use the alias URL rather than the
actual URL to which the post data needs to be sent to.

Thanks in advance!

Steve.
Received on 2004-08-10