i'm trying to send a POST request but I can't understand the examples.
Is there a reference page or some documentation about curlpp
fonctions?
The best I can do for now is this function:

string getHTML(string url, string post[][2])
{
        try{
                Cleanup cleanup;
                ostringstream os;
                Easy request;
                request.setOpt(Url(url));
                request.setOpt(Verbose(true));
                request.setOpt(PostFields("abcd"));
                request.setOpt(PostFieldSize(5));
                os<<request;
                return os.str();
        }catch( RuntimeError & e ){
                cout<<e.what()<<endl;
        }catch ( LogicError & e ) {
                cout<<e.what()<<endl;
        }
}


Can someone help me?
For now I just need to send a POST request for this:
<form action="teste.php" action="post">
    User:<input class="campo" type="text" name="user"/><br>
    Name:<input class="campo" type="text" name="name"/><br>
    Password:<input class="campo" type="password" name="passwd"/><br>
    Stay <input type="radio" name="stay"/> <input type="radio"
name="stay"/>
    <input type="submit"/><br>
</form>

-- 
You received this message because you are subscribed to the Google Groups 
"curlpp" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/curlpp?hl=en.

Reply via email to