I am working with a wrapper class for CFHTTPMessage that contains a CFHTTPMessageRef object to which a (GET) method has been added, a web application server URL and some custom headers containing nonce date and authentication.
I'm having trouble getting the method and url to return certain data. I think I developed nonce authentication.
I would like to fix this by looking at the raw request sent to the web application and making sure everything is formatted correctly.
My question is: if I have a CFHTTPMessageRef object (e.g. messageRef ), is there a way to register a raw HTTP request that comes out of this message?
I tried the following, but I get an EXC_BAD_ACCESS signal when I try to access its bytes:
CFDataRef messageData = CFHTTPMessageCopyBody(messageRef);
Thanks for any advice.
As an alternative, can I use packet sniffer in a switched network? I can run ettercap on a laptop, but donβt know how to sniff what my iPhone does on a local wireless network.
source share