1

Have read thru other source, such as: https://discussions.apple.com/message/7844057#7844057

Seems there is no way to read a page with "chunked" transfer-coding (i.e. without content-length) using NSURLConnection.

Any other workaround or other library can help?

Update: Finally solved by using ASIHTTPRequest

Howard
  • 19,215
  • 35
  • 112
  • 184

2 Answers2

1

You can use ASIHTTPRequest.

Mac
  • 14,615
  • 9
  • 62
  • 80
Howard
  • 19,215
  • 35
  • 112
  • 184
0

It might be too late to re-architect everything, but an awful lot of people like RestKit. It is primarily for communication with Restful services, including some pretty powerful object mapping, but I do recall seeing some mention in the docs for batch transfers of large amounts of data, say image data. Perhaps it can help you with your chunks?

Paul Cezanne
  • 8,629
  • 7
  • 59
  • 90