views:

33

answers:

0

Hi guys

Suppose Server url is : https://example.com/employee

and it's return json data

I want to call this url using Jquery in iphone

I wrote this code :

$.ajax { type: "POST",
contentType: "application/json; charset=utf-8",
url: "https://example.com/employee",
data: "{}",
dataType: "json"
success: function(res) {

} });

Is this the right way to call this https request or I need to do some other authentication also

Currently it does not work in iphone

It return's json data in firefox,chorme,IE ,safari but doesn't return in iphone

Please suggest me ..

Thanks