Hi, I´m trying to login to a site.
I´m using the Drive proc of the Weather example to try the login and fiddler.exe to see the original post.
The page is
http://www.ravaonline.com/v2/clientes/posicion.phpIts in spanish but the only fields that matters are:
Cliente: (User) and Clave: (password) , and the Ingresar button (Login)
The password used in the following examples and code is incorrect, the page received after the post must contanin astinrg like: El nombre de usuario es inválido... "The username is invalid..."
but I´m receivung always the same original page, no response.
With fiddler the post sent is:POST /v2/clientes/posicion.php? HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer:
http://www.ravaonline.com/v2/clientes/posicion.phpAccept-Language: es-AR
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; .NET CLR 3.0.30729; OfficeLivePatch.1.3; .NET CLR 1.1.4322)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host:
www.ravaonline.comContent-Length: 75
Connection: Keep-Alive
Pragma: no-cache
Cookie: PHPSESSID=2c0ae0c5fabae5cfe505b1d3d1773ae6; __utma=179040551.1217564139.1272453030.1272453030.1272453030.1; __utmb=179040551.1.10.1272453030; __utmc=179040551; __utmz=179040551.1272453030.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
accion=u_login&usuario_nivel_acceso=cliente&u_usuario=8786&u_clave=xxx
With the Drive procThe only cookie that it recognize when you press the "Fetch page from URL above" button is the PHPSESSID
I´ve added the rest of the cookies manually, where do they come from?
Then the post sent is:
POST
http://www.ravaonline.com/v2/clientes/posicion.php? HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host:
www.ravaonline.comContent-Length: 72
Cookie: PHPSESSID=8ef184674853d291cb0ace5151ce6a08;__UTMA=179040551.1217564139.1272453030.1272453030.1272453030.1; __UTMB=179040551.6.10.1272453030; __UTMC=179040551; __UTMZ=179040551.1272453030.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
Proxy-Connection: Keep-Alive
accion=u_login&usuario_nivel_acceso=cliente&u_usuario=8786&u_clave=xxx
It does not work.
May be the cookies which are originaly lowercase are set to uppercase using the .SetCookie method
May be the space between the ; and the cookie
Any idea?
Thanks