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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -