Rumata пишет:Так как задача не критичная, то и не сильно упорствовал в ее решении. Куки, кстати, тоже не получалось сохранить. У Вас получалось?
И для меня задача тоже особой важности не представляет. Движет мной любопытство. Больше уважаю wget, поэтому уж очень хочется что бы он тоже мог. Кука сохраняется, ага. Вот лог
D:\test>wget -O nul --post-data="userName=9055551234&password=PASSWORD&ecareAction=login" "https://uslugi.beeline.ru/loginPage.do" --save-cookies=cookies.txt --keep-session-cookies --no-check-certificate
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = c:/progra~1/wget/etc/wgetrc
--2013-03-12 23:04:49-- https://uslugi.beeline.ru/loginPage.do
Resolving uslugi.beeline.ru... 217.118.84.75
Connecting to uslugi.beeline.ru|217.118.84.75|:443... connected.
WARNING: cannot verify uslugi.beeline.ru's certificate, issued by `/C=US/O=Thawte, Inc./CN=Thawte SSL CA':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 8048 (7,9K) [text/html]
Saving to: `nul'
100%[======================================>] 8 048 --.-K/s in 0,1s
2013-03-12 23:04:51 (53,9 KB/s) - `nul' saved [8048/8048]
D:\test>wget -O- "http://uslugi.beeline.ru/vip/prepaid/refreshedPrepaidBalance.jsp" --load-cookies=cookies.txt --keep-session-cookies --no-check-certificate -U "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = c:/progra~1/wget/etc/wgetrc
--2013-03-12 23:05:53-- http://uslugi.beeline.ru/vip/prepaid/refreshedPrepaidBalance.jsp
Resolving uslugi.beeline.ru... 217.118.84.75
Connecting to uslugi.beeline.ru|217.118.84.75|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://uslugi.beeline.ru/vip/prepaid/refreshedPrepaidBalance.jsp [following]
--2013-03-12 23:05:53-- https://uslugi.beeline.ru/vip/prepaid/refreshedPrepaidBalance.jsp
Connecting to uslugi.beeline.ru|217.118.84.75|:443... connected.
WARNING: cannot verify uslugi.beeline.ru's certificate, issued by `/C=US/O=Thawte, Inc./CN=Thawte SSL CA':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 297 [text/html]
Saving to: `STDOUT'
0% [ ] 0 --.-K/s
<link rel="stylesheet" href="ecare.css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<html>
<body >
<table>
<tr>
<td class="warn"><b>Информация не доступна</b></td>
</tr>
</table>
</body>
</html>
100%[=====================================> ] 297 --.-K/s in 0s
2013-03-12 23:05:54 (61,1 MB/s) - `-' saved [297/297]
ЗЫЖ Пожалуйста не надо на "вы", я ж не старикашка.
Нас невозможно сбить с пути, нам пофигу куда идти.