iPhone and ASIHTTPRequest - Unable to start HTTP connection -


I am using the ASIHTTPRequest class to communicate with the web service and to get feedback. In this way I send a request to the server

  NSString * str = [NSString stringWithFormat: @ "% @ verifyLogin.json", serverUrl]; NSDRL * URL = [NSUr URL YouthString: [Str StringBaddingPercent Escapes Using Encoding: NSTF 8 String Encoding]]; ASIHTTPRequest * Request = [[[ASIHTTPRequest alloc] initWithURL: url] autorelease]; [Request addRequestHeader: @ "content-type" value: @ "text / x-gwt-rpc; charset = utf-8"]; NSDRIBZ * Data = [NSDiction Dictionary with Object Ends: Email ID, @ "Username", PWD, @ "Password", zero]; [Request appendPostData: [[Data JSONFragment] Data Usage Encoding: NSUTF8StringEncoding]]; [Request Security Mode: @ "Post"]; [Delegate request set: Self]; [Request SetfishChinese: @Selector (Milologin Response :)); [Requested Set File Selectors: @Selector (LoginResist file :)]; [NetworkCover add operation: request]; [NetworkQUU];  

The control immediately goes into the error result and error details and domain

Unable to start the HTTP connection and ASIHTTPRequestErrorDomain

I can request a request to work through a desktop tool to check HTTP requests so that I know that the settings are all correct.

Can someone tell me what I

thank you

As I had previously commented;

In your first line it says "% verifyLogin.json" It should not be so; "%@verifyLogin.json" ????


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -