cybergarage / uhttp-cc

uHTTP for C++ is a developer framework for HTTP client and server applications.
http://www.cybergarage.org/
10 stars 9 forks source link

Redirect/Follow Status Codes #2

Open Fishwaldo opened 10 years ago

Fishwaldo commented 10 years ago

It would be nice if uHTTP4CC can follow redirects (moved temporarily/perm) - eg, status code 302 etc.

eg: [fish@rollergirl httpget]$ unix/httpget -v http://www.google.com/

GET / HTTP/1.1 User-Agent : uhttp/0.6 libuhttp++/0.6 Accept : / HOST : www.google.com < HTTP/1.1 302 Found < Content-Type : text/html; charset=UTF-8 < Server : GFE/2.0 < Cache-Control : private < Location : http://www.google.com.sg/?gfe_rd=cr&ei=BdkkVOTgC8aM8Qem0IHwBQ < Content-Length : 262 < Date : Fri, 26 Sep 2014 03:09:57 GMT < Alternate-Protocol : 80:quic,p=0.002 < Connection : close

Fishwaldo commented 10 years ago

Also, any plans for SSL (https) support?

I'm planning on integrating the Cyberlink4CC into my app soon, which already has a basic HTTP client. If I can replace my client with your implementation that would be good....