I know how to send post/get request using any HTTPClient which are explained here and here. But now I have a stream socket connected to a remote server and I want to send a post request using this socket.
I never done that before and frankly never considered a concept of POST/GET via socket. But my googling led me to this, where post is done via a java socket..
I am using CFSocket libraries provided by Apple..Is there anyway to do POST/GET using socket in Objective-C?
Well I have been able to do GET/POST using plain CFSocket.
Now in your socket callback function you can read the http response..Hope this will help someone..