Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

joyjit

macrumors newbie
Original poster
Aug 8, 2008
3
0
Hi,
Im a new to the iPhone development world...
Is it possible to implement http connection for iPhone Development?

If yes, please provide a sample code to implement http connection on iPhone...

Thanks in advance...

Have a nice day ahead... :)

Regards
Joyjit
 

Cromulent

macrumors 604
Oct 2, 2006
6,816
1,101
The Land of Hope and Glory
Hi,
Im a new to the iPhone development world...
Is it possible to implement http connection for iPhone Development?

If yes, please provide a sample code to implement http connection on iPhone...

Thanks in advance...

Have a nice day ahead... :)

Regards
Joyjit

Certainly. You just need to establish a connection with the server using either BSD sockets or the CFNetwork API and then send the relevant commands as per the HTTP standard. In fact I think CFNetwork has some functions specifically designed for HTTP connections so that might make it considerably easier.

The best bet is to read the CFNetwork documentation on the iPhone dev site.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.