AFNetworking not send request but return response directly

139 views Asked by At

I use AFNetworking(2.6.3). I try use Charles map local response for one request. After lot of times, when I disable this map, I also only get local response, can't get online response.

The response from AFNetworking:

<NSHTTPURLResponse: 0x17102e820> { URL: https://api.xiangrikui.com/bxr/apps/activities } { status code: 200, headers {
Connection = "Keep-alive";
"Content-Length" = 604;
"Content-Type" = "application/json";
"X-Charles-Map-Local" = "/Users/linliling/Desktop/???app?????/poster1.json";
} }
1

There are 1 answers

4
Jose Vildosola G On

I have faced something similar, but the connection said that it was closed. Try with another proxy program like Burp. It's not fancy as Charles but it gets the job done.

Also if you could post the response you see in Charles it will be useful to better understand the issue.