cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

redirect

From: Francisco Alves <chico.r.alves_at_gmail.com>
Date: Tue, 10 Nov 2009 19:30:45 -0200

I made a curl post and received the following page:

<body onLoad="javascript:document.redir.submit();">

    <form name="redir" method="post" action="http://host/cgi-bin/main">
    <input type="hidden" value="000" name="var1">
    <input type="hidden" value="1" name="flag1">
    <input type="hidden" name="code" value="999999999">
    </form>

</body>

my curl configuration:

        curl_easy_setopt(curl, CURLOPT_USERAGENT, "agent/1.0");
        curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 1 );
        curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1 );
        curl_easy_setopt(curl, CURLOPT_COOKIEFILE,"" );
        curl_easy_setopt(curl, CURLOPT_ENCODING,"" );
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);

am I missing some parameters ?

thank in advance

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-10

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET