Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-11-2009, 01:37 PM   #4 (permalink)
chewbocka
Tutorial Author
 
Join Date: Feb 2009
Posts: 49
Default

Quote:
Originally Posted by robgreensmith View Post
Has anybody got any examples or links to examples of http get??
I'm using something like this for get requests.

Code:
NSMutableURLRequest *request = [[NSMutableRequest alloc] initWithURL: [NSURL URLWithString: url]];
[request setHTTPMethod: @"GET"];

NSData *response = [NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil];
NSString *stringResponse = [[NSString alloc] initWithData: response encoding: NSUTF8StringEncoding];
__________________
blog | twitter
chewbocka is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,296
Threads: 39,088
Posts: 171,386
Top Poster: smasher (2,575)
Welcome to our newest member, Issue
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:38 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.