Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-11-2009, 02: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
 

» Advertisements
» Stats
Members: 158,669
Threads: 89,155
Posts: 380,385
Top Poster: BrianSlick (7,110)
Welcome to our newest member, jarrettshawn
Powered by vBadvanced CMPS v3.1.0

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