I need to inform my user about the result of the GET process whether the data is sent to server or not. Can anyone give me an idea about how to do?
Note: In one of my User Interfaces there are some buttons, and when the user clicks them some data will be sent to server. How can i inform user about this request’s result? Thanks..
EDIT
-(IBAction)theAction:(id)sender{
NSString *key1=[[NSUserDefaults standardUserDefaults] valueForKey:@"keyToKey"];
NSString *userID=[[NSUserDefaults standardUserDefaults] valueForKey:@"userID"];
NSLog(@"\nButton ID: %d-",[sender tag] );
NSString *str1= [[@"http://" stringByAppendingString:serverF.text] stringByAppendingString:@"/request.php?"];
NSString *str2= [[str1 stringByAppendingString:@"key="] stringByAppendingString:key1];
NSString *str3= [[[[str2 stringByAppendingString:@"&userID="]stringByAppendingString:userID] stringByAppendingString:@"&button_tag="]stringByAppendingString:[ sender tag]];
NSURL *theUrl=[NSURL URLWithString:str3];
// What shall i do from here?, or is this way true???
}
What do i need from this point?
At this code you will have at the
GETresponsethe result for the GET HTTP request: