From: Raindog <ra...@ma...> - 2010-12-03 03:04:08
|
Thanks, and sorry for the top post, my email client on my phone only supports top posting. I realize now that after your response that I need also to send a file, I am trying essentially to fill out a web form w/ a file upload element, along with some options, hence why I thought it was a POST. I apologize for not being clear "Dean Michael Berris" <mik...@gm...> wrote: >Hi, > >On Fri, Dec 3, 2010 at 9:42 AM, Raindog <ra...@ma...> >wrote: >> Hello, >> >> I am wondering if someone can show me a minimalist http post example, >at least how to add the query string parameters to the existing >example. IE how to post the equivalent of: >> >> Http://www.mysite.com/site.cgi?foo=bar&baz=quid >> > >Actually this isn't an HTTP POST, but rather an HTTP GET request with >the query parameter supplied. This would work for what you intend to >do: > > http::client client; > http::client::request >request("http://www.mysite.com/site.cgi?foo=bar&baz=quid"); > http::client::response response = client.get(request); > >HTH > >-- >Dean Michael Berris >deanberris.com > >------------------------------------------------------------------------------ >Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! >Tap into the largest installed PC base & get more eyes on your game by >optimizing for Intel(R) Graphics Technology. Get started today with the >Intel(R) Software Partner Program. Five $500 cash prizes are up for >grabs. >http://p.sf.net/sfu/intelisp-dev2dev >_______________________________________________ >Cpp-netlib-devel mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. |