NSURLRequest http protocol version
问题 It is quite a simple question from me today. Is it possible to set specific HTTP protocol version to NSURLRequest object (1.0 or 1.1, for example)? An example of what I'm talking about on telnet: pavlov:~ pavlov$ telnet ya.ru 80 Trying 87.250.250.3... Connected to ya.ru. Escape character is '^]'. GET /index.php HTTP/1.0 回答1: You cannot change the HTTP version of a NSURLRequest . However you can use the CFNetwork framework. It's the C framework on top of which NSURLConnection is based. The