How to retrieve gps co-ordinates of my iPhone to my server to show on my website?
<p>I'm working on a security app on iPhone. I want to show the real time position of users iPhone ,any time when user clicks "find device" on website.(provided- user has installed my app on iphone and has registered on my website.)</p>

<p>In my previous webservices what I used to do is,request to server for some information and server would respond the request.(using NSURLRequest and NSURLConnection from device)</p>

<p>But here the case is, my device is not requesting the server for some response;user will be requesting the server from website to locate the device. 
here I cant use NSURLRequest and NSURLConnection.</p>

<p>I can get my gps co-ordinates on my iphone programmatically. issue is, just to pass those co-ordinates to my server ONLY when server is asking my device to do that.
How should I achieve that?? </p>

<p>Thanks for any suggestions.</p>
