1

我想获取一个 NSURLRequest 并将其转换为一些可以写入 socket() 的可用数据,而不是像 NSURLConnection 之类的东西。

实现这一目标的最佳方法是什么?

4

1 回答 1

1

NO!

You can create a NSMutableURLRequest and provide that request with a HTTPBodyStream then create a NSURLConnection to send the request.

The HTTPBodyStream is an NSInputStream the request will read the body from. You can get it value from user, file or NSData.

于 2012-11-14T13:34:28.600 回答