Barry,
I got to know now why you are replying in an undesired pattern. I wished you had read my original posting. Whatever you have suggested here that is what precisely I did and I had mentioned about it when I started this thread. ... I am copying and pasting it here... I am using LoginProxy , consumerIP and restrictedIP as well. Now will you take little bit pain to resolve this round and round loop with you ?
Thanks.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I am using your sample code ( PHPHostedFileManager ) and I used LOGINPROXY to authenticate and assign a session to the browser's IP address ( Client IP address )
$request = "https://services.nirvanix.com/ws/Authentication/LoginProxy.ashx?appKey=$appkey&username=$username&password=$password&consumerIP=".$_SERVER['REMOTE_ADDR'];
The consumerIP is the Client's IP address. I got a successful session based on the Client's IP address which is the desired result.
Now in the second step I wanted to lookup the nearest Nirvanix Node based on the above consumer IP address. So made a second request where I passed the session ( which I retrieved in earlier request ) and the consumer IP as restricted IP which is same as the Browser's IP address , to determine the nearest Nirvanix Node to the Client's IP ( and not my server )
$request = "https://services.nirvanix.com/ws/IMFS/GetStorageNode.ashx?sessionToken=$session_token&sizeBytes=10000000&restrictedIP=".$_SERVER['REMOTE_ADDR'];
But I got an error saying "...Session not found for ip = 85.17.209.36 " where as this IP is nothing but my server's IP where I am running the Nirvanix API which I never passed in either of the request above.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++