Most browsers and HTTP clients send HTTP requests like:

GET /path/to/resource HTTP/1.1
Host www.example.com

But, some clients send HTTP requests like:

GET http://www.example.com/path/to/resource HTTP/1.1
Host www.example.com

Why? Does Werkzeug's routing system can deal with the later one? I want to 
test myself but don't know how to issue a request like this :(

And, how can I send a HTTP request manually?
Say I have a string 
("GET http://www.example.com/path/to/resource HTTP/1.1\r\n"
 "Host www.example.com\r\n")

, how can I issue a HTTP request EXACTLY same with it?

I don't know much about socket :(

Thanks

Cosmia

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to