Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephP91 committed Jun 3, 2014
1 parent f29c4da commit 2f44239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ using curl::CurlHttpPost;
int main(int argc, const char * argv[]) {
CurlEasy easy;
CurlHttpPost post;
// Imagine these two lines like two html forms!
// First example form
post.add(CurlPair<CURLformoption,string>(CURLFORM_COPYNAME,"user"),CurlPair<CURLformoption,string>(CURLFORM_COPYCONTENTS,"username"));
// Second example form
post.add(CurlPair<CURLformoption,string>(CURLFORM_COPYNAME,"passw"), CurlPair<CURLformoption,string>(CURLFORM_COPYCONTENTS,"password"));
easy.add(CurlPair<CURLoption,string>(CURLOPT_URL,"https://xxxxx/"));
Expand Down

0 comments on commit 2f44239

Please sign in to comment.