【问题标题】:ASIHTTPRequest and http headerASIHTTPRequest 和 http 标头
【发布时间】:2023-03-17 11:45:01
【问题描述】:

我想用 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

【问题讨论】:

    标签: iphone asihttprequest


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-27
      • 2010-11-11
      • 1970-01-01
      • 2013-03-12
      • 2016-11-26
      • 2012-07-11
      相关资源
      最近更新 更多