How do I make an HTTP Post with HTTP Basic Authentication, using POCO?

Posted by Alyoshak on Stack Overflow See other posts from Stack Overflow or by Alyoshak
Published on 2012-10-31T19:07:02Z Indexed on 2012/11/05 17:00 UTC
Read the original article Hit count: 313

I'm trying to make an HTTP Post with HTTP Basic Authentication (cleartext username and password), using POCO. I found an example of a Get and have tried to modify it, but being a rookie I think I've mangled it beyond usefulness. Anyone know how to do this?

Yes, I've already seen the other SO question on this: POCO C++ - NET SSL - how to POST HTTPS request, but I can't make sense of how it is trying to implement the username and password part. I also don't understand the use of "x-www-form-urlencoded". Is this required for a Post? I don't have a form. Just want to POST to the server with username and password parameters.

© Stack Overflow or respective owner

Related posts about http

Related posts about post