curl-users
Sending data in the URL string instead of a callback
Date: Wed, 8 Oct 2003 11:43:50 -0400
Hi List,
I Need to submit data to a remote server by appending it to the URL string.
Something like
http://IP_Adress/<<WebApplPathName>>/DataServlet?XML="+Buffer1+"&Process="+B
uffer2 <http://IP_Adress/<<WebApplPathName>>/DataServlet?XML=> where
Buffer1 and Buffer2 are the buffers that would hold the data to be sent to
the remote server.
I was wondering if I could fill the buffers in the URL easy handle option
itself. This way I wouldn't have to setup any callbacks for uploading data.
For example,
curl_easy_setopt(curl,
CURLOPT_URL,"http://web-ppt/review/DataServlet?XML="welcome.ppt"+"&Process="
+"Presentation");
Here Buffer1 is string literal "welcome.ppt" and Buffer2 has "Presentation".
I would then process this by calling easy handle perform such as:
curl_easy_perform(curl);
Has anybody used a similar approach in sending data instead of calling
callbacks.
Ofcourse I would have to setup a callback for receiving the response from
the server.
Thnx in advance,
amit
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-08