嘿我正在使用NSURL连接来接收数据.
[NSURLConnection sendSynchronousRequest:
//create request from url
[NSURLRequest requestWithURL:
//create url from string
[NSURL URLWithString:url]
]
//request parameters
returningResponse:nil error:nil
]
Run Code Online (Sandbox Code Playgroud)
是否可以更改用户代理字符串?现在它是:
AppName/AppVersion CFNetwork/459 Darwin/10.0.0.d3