Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AFNetworking's AFHTTPClient how to debug the http request?

I'm having trouble getting AFNetworking to communicate successfully with a web service. Is there a way to log out (or view in some other way) the exact http request that it is sending?

like image 236
Meltemi Avatar asked Dec 21 '22 13:12

Meltemi


2 Answers

You should check out AFHTTPRequestOperationLogger, which listens for the notifications sent when operations start and finish, and log them out with configurable verbosity.

like image 125
mattt Avatar answered Dec 23 '22 02:12

mattt


I really like Charles for watching network traffic when using the simulator.

like image 32
Brendon Avatar answered Dec 23 '22 03:12

Brendon