ios - AFHTTPRequestOperationManager isn't call (no response/no faillure) -


here's code :

[[afnetworkreachabilitymanager sharedmanager] startmonitoring]; mainmanager = [afhttprequestoperationmanager manager]; mainmanager.requestserializer.timeoutinterval = 30; 

i initialise afhttprequestoperationmanager this.

urltowhere = @"myurl.php"; parameters = @{@"user_id": "1"}; nslog(@"a");  [mainmanager post:urltowhere parameters:parameters success:^(afhttprequestoperation *operation, id responseobject) {     nslog(@"result"); } failure:^(afhttprequestoperation *operation, nserror *error) {     nslog(@"error"); }]; nslog(@"b"); 

the fact display in logs, none of "result" or "error" displayed, , b displayed.

is there exception afhttprequestoperationmanager dodge ?

i can not comment @ moment, using answer options. shouldn't urltowhere parameter this

urltowhere = @"http://myurl.php"; 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -