Authentication with network.download

I am new to authentification with network.download and I would like to ask if somebody could help me with the following.

I am dealing with the following 2 methods:

https://<Endpoint>/Default.aspx?username=<TBD>&password=<TBD** >**

This method performs the authentication of the calling application and returns the session and authentication cookies (security tokens) in the http response header. These cookies must be provided as part of the request header when calling the other API methods.

https://<Endpoint>/Network/StationsList

Returns the list of all stations present in the network. 

 

The security tokens obtained as part of the authentication URL must be present in the request header for this call to succeed.

 

So my question is, how do I call the first method to receive the cookie and how do I call the second method and specify the security token ?

Any help would be deeply appreciated.

Thanks

Nicl

no one ?

I haven’t done this so can’t be of any direct help. But have you looked at the previous discussions?

http://forums.coronalabs.com/topic/43507-multiple-set-cookie-responses-in-http-get-headers/

http://forums.coronalabs.com/topic/40698-cookie-changes-during-network-request-302-moved/

http://forums.coronalabs.com/topic/39762-httprequest-and-cookies/

http://forums.coronalabs.com/topic/9540-delete-cookies-from-webview/

Passwords in the url?  So bad on many levels.

Consider using the https://stormpath.com oAuth API for password-less transmission of login events.

https://stormpath.com/product/

no one ?

I haven’t done this so can’t be of any direct help. But have you looked at the previous discussions?

http://forums.coronalabs.com/topic/43507-multiple-set-cookie-responses-in-http-get-headers/

http://forums.coronalabs.com/topic/40698-cookie-changes-during-network-request-302-moved/

http://forums.coronalabs.com/topic/39762-httprequest-and-cookies/

http://forums.coronalabs.com/topic/9540-delete-cookies-from-webview/

Passwords in the url?  So bad on many levels.

Consider using the https://stormpath.com oAuth API for password-less transmission of login events.

https://stormpath.com/product/