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

Reply via email to