Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone ASIHTTPRequest和http头_Iphone_Asihttprequest - Fatal编程技术网

Iphone ASIHTTPRequest和http头

Iphone ASIHTTPRequest和http头,iphone,asihttprequest,Iphone,Asihttprequest,我想用ASIHTTPRequest重现这个http头调用。我怎样才能做到这一点呢 Host www.host User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language fr,fr-

我想用ASIHTTPRequest重现这个http头调用。我怎样才能做到这一点呢

Host www.host

User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17

Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding gzip,deflate

Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive 115

Proxy-Connection keep-alive

Cookie fe_typo_user=71

您可以像这样添加请求头:

[request addRequestHeader:@"Referer" value:@"http://allseeing-i.com/"];