Authorization‎ > ‎

1-way authorization

1-way authorization by specifying user and password in the URL:

Parameter:
username + password
username + md5_password

Example:
http://maps1.locr.com/?username=USERNAME&password=XXXXXXXXXX&latitude_min=36&longitude_min=12&latitude_max=38&longitude_max=15&width_cm=10&height_cm=10&map_config=202
http://maps1.locr.com/?username=USERNAME&md5_password=YYYYYYYY&latitude_min=36&longitude_min=12&latitude_max=38&longitude_max=15&width_cm=10&height_cm=10&map_config=202

For a higher level of security use HTTPS for the transfer.

1-way authorization with cookies

In this procedure we use cookies to send the username and password to the locr maps server. Cookies can be generated and submitted from different programming languages.

Here is an Example-Cookie in PHP:
<?php
header('Content-Type: image/jpeg');
$ch = curl_init("URL”);
curl_setopt($ch, CURLOPT_COOKIE, 'MapCreateUsername=USERNAME;MapCreatePassword='.md5(PASSWORD));
curl_exec($ch);
?>

To get access put in the appropriate values for URL, USERNAME and PASSWORD.
Comments