php - http request loop not sending -


why not send http request? i'm trying add friends person logged in mysql table. when use url manually in browser http://www.ratemyplays.com/api/post_friends.php?name=%@&id=%@&userid=%@

it add values %@, not when run objective-c code. doing wrong http request loop?

for (nsdictionary<fbgraphuser>* friend in friends) {       nsstring *strurl = [nsstring stringwithformat:@"http://www.ratemyplays.com/api/post_friends.php?name=%@&id=%@&userid=%@",friend.name, friend.id, currentid];       // execute php code      nsdata *dataurl = [nsdata datawithcontentsofurl:[nsurl urlwithstring:strurl]];      // receive returend value     nsstring *strresult = [[nsstring alloc] initwithdata:dataurl encoding:nsutf8stringencoding];                     nslog(@"%@", strresult); } 

i think need more clear trying accomplish here.. url nslog prints out looks fine.. mean adding %@? did in creating again , again -one- string of url , didn't it...


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -