AFNetworking AFHTTPClient how to debug an HTTP request?

I'm having issues with AFNetworking successfully communicating with a web service. Is there a way to log out (or look in some other way) of the exact HTTP request that it sends?

+4
source share
2 answers

You should check out the AFHTTPRequestOperationLogger , which listens for notifications sent at the start and end of operations, and displays them using custom verbosity.

+7
source

I really like Charles to view network traffic when using the simulator.

+4
source

Source: https://habr.com/ru/post/1445126/


All Articles