Search code examples
iosweb-servicesrequestbrowserresponse

Issue in json request response, getting blank response


I am stuck with an issue in simple request response in iOS, I am getting blank response in request a url with one post parameter, where the url as it is perfectly working in android and webbrowser

Friends in detail, I have to call

http://example.com/GetCountries

with below http post params

"key"="Abcd1234"

it is working before, but from last few days it is not working, if I check NSError it is showing me The network connection was lost.

and one more thing noticeable here is same server code is on different url and it is working fine, and that url you can test as below

http://example.com/GetCountries

with below http post params

"key"="Abcd1234"

Here is the dropbox link for testing ios source code and also the folder contains Web services test.htm file to test that same url with same post parameter working in browser but not in ios device.

Testing code: https://dl.dropboxusercontent.com/s/lqrl5b95j2s54mm/Testing.zip?token_hash=AAFgoNfUpQ4FkeswnPdGiMVzdMtSM6js9KySJm_OH6lZXQ&dl=1

thank you


Solution

  • I have used ASIHTTP Library and my problem is solved