bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Login to sonic.net using post-data over https not working


From: Eric Moret
Subject: [Bug-wget] Login to sonic.net using post-data over https not working
Date: Sat, 5 Feb 2011 07:28:28 -0800

Hello,

I am trying to use wget to update my IPv6 tunnel endpoint on
sonic.net. My plan is to use the two steps process described in the
man page, first saving a session cookie, then posting the updated IP
address to a different page on the site. I am stuck on getting a
working login with the below command. Any help appreciated.

Thanks,
__
Eric

$ wget --no-check-certificate --keep-session-cookies --save-cookies
cookies.txt --post-data "user=mylogin&pw=mypassword" -S -dv
https://members.sonic.net/
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.12 on cygwin.

URI encoding = `UTF-8'
--2011-02-05 07:22:57--  https://members.sonic.net/
Resolving members.sonic.net (members.sonic.net)... 69.12.221.98
Caching members.sonic.net => 69.12.221.98
Connecting to members.sonic.net
(members.sonic.net)|69.12.221.98|:443... connected.
Created socket 3.
Releasing 0x00a55500 (new refcount 1).
Initiating SSL handshake.
Handshake successful; connected socket 3 to SSL handle 0x00a4c210
certificate:
  subject: /O=members.sonic.net/OU=Domain Control Validated/CN=members.sonic.net
  issuer:  /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com,
Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure
Certification Authority/serialNumber=07969287
WARNING: cannot verify members.sonic.net's certificate, issued by
`/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com,
Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure
Certification Authority/serialNumber=07969287':
  Self-signed certificate encountered.

---request begin---
POST / HTTP/1.0
User-Agent: Wget/1.12 (cygwin)
Accept: */*
Host: members.sonic.net
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 22

---request end---
[POST data: user=mylogin&pw=mypassword]
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Sat, 05 Feb 2011 15:22:51 GMT
Server: Apache
Set-Cookie: PHPSESSID=esudibb8c24oegdh0jjo62frv7; path=/; secure
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=esudibb8c24oegdh0jjo62frv7; path=/; secure
Set-Cookie: pmaCookieVer=deleted; expires=Fri, 05-Feb-2010 15:22:51 GMT
Content-Length: 4952
Connection: close
Content-Type: text/html; charset=ISO-8859-1

---response end---

  HTTP/1.1 200 OK
  Date: Sat, 05 Feb 2011 15:22:51 GMT
  Server: Apache
  Set-Cookie: PHPSESSID=esudibb8c24oegdh0jjo62frv7; path=/; secure
  Expires: Thu, 19 Nov 1981 08:52:00 GMT
  Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  Pragma: no-cache
  Set-Cookie: PHPSESSID=esudibb8c24oegdh0jjo62frv7; path=/; secure
  Set-Cookie: pmaCookieVer=deleted; expires=Fri, 05-Feb-2010 15:22:51 GMT
  Content-Length: 4952
  Connection: close
  Content-Type: text/html; charset=ISO-8859-1

Stored cookie members.sonic.net -1 (ANY) / <session> <secure> [expiry
none] PHPSESSID esudibb8c24oegdh0jjo62frv7
Deleted old cookie (to be replaced.)

Stored cookie members.sonic.net -1 (ANY) / <session> <secure> [expiry
none] PHPSESSID esudibb8c24oegdh0jjo62frv7
URI content encoding = `ISO-8859-1'
Length: 4952 (4.8K) [text/html]
Saving to: `index.html'

100%[==================================================================================================>]
4,952       --.-K/s   in 0.004s

Closed 3/SSL 0x00a4c210
2011-02-05 07:23:01 (1.16 MB/s) - `index.html' saved [4952/4952]

Saving cookies to cookies.txt.
Done saving cookies.

$ cat index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>

<title>Sonic.net - Sonic Login</title>
<link href="/css/tools.css" rel="stylesheet" type="text/css"></link>
<link href="/css/fixed.css" rel="stylesheet" type="text/css"></link>
<link href="/css/treemenu.css" rel="stylesheet" type="text/css"></link>
<link href="/css/redmond/jquery-ui-1.8.4.custom.css" rel="stylesheet"
type="text/css"></link>
<script src="/js/jquery-min.js" type="text/javascript"></script>
<script src="/js/loading.js" type="text/javascript"></script>
<script src="/js/treemenu-min.js" type="text/javascript"></script>
<script type="text/javascript" language="JavaScript"
src="/js/jquery-ui-1.8.4.custom.min.js"></script>



<!--[if lt IE 7.]>
<script type="text/javascript" src="/js/pngfix.js" defer="defer"></script>
<![endif]-->
</head>
<body>

<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="header_footer" style="border-bottom:1px solid
#ABABAB;padding-bottom:4px;">
<tr>
        <td rowspan="2"><a href="http://www.sonic.net/";><img
src="/images/sonic_logo.gif" alt="Sonic.net Logo" width="247"
height="70" /></a></td>
        <td style="text-align:right; vertical-align:top; padding-right:15px;">
                <a class="menu" href="/">Sonic Members Home</a> |
<a class="menu" href="http://www.sonic.net/";>Sonic Home</a> |
<a class="menu" href="http://www.sonic.net/sales/";>Sales</a> |
<a class="menu" href="http://www.sonic.net/help/";>Support</a> |
<a class="menu" href="/logout">Logout</a><br />
<br />
        </td>
</tr>
<tr>
        <td style="text-align:right;vertical-align:bottom;"></td>
</tr>
</table>

<div id="main" style="margin-bottom:0px;">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
  <td style="vertical-align:top;">
        <div class="treemenudiv">
                <ul id="treemenu">
<li class="rootNode"><a class="leafTitle" href="/"><span
class="left"><img alt="" src="/images/menu/home.png"/></span><span
class="right"><img alt="" src="/images/spacer.png"/></span><span
class="center">Sonic Members Home</span></a></li>
</ul>   </div>
  </td>

<td valign="top">


        <p style="margin:15px 0 10px 0;">&nbsp;</p>

        <table width="600" border="0" cellpadding="5" cellspacing="0"
style="text-align:center; vertical-align:top;" align="center">
                <tr>
                        <td width="100%" class="toolheader"><div
style="float: left"><strong>Sonic Login</strong>&nbsp;</div><div
style="float:right;"></div></td>
        </tr>
        </table>

        <table width="600" cellpadding="7" cellspacing="0"
align="center" class="tool_outside_container">
                <tr>
                        <td class="tool_container_top" height="20" />
                </tr>
                <tr>
                        <td class="tool_inside_container">

<div class="error"
style="padding-top:20px;padding-bottom:5px;text-align:center;">Please
enable cookies for members.sonic.net</div>

<div style="text-align:center;">
<form method="post" action="/" id="login" style="text-align:center;">

        <table border="0" cellspacing="0" cellpadding="5"
style="width:200px;margin:20px auto 0 auto;">
                <tr>
                        <td
style="vertical-align:top;"><strong>Username:</strong></td>
                        <td style="vertical-align:top;">
                                <input type="text" name="user" id="user" />
                                <script
type="text/javascript">document.getElementById('user').focus();</script>
                        </td>
                </tr>

                <tr>
                        <td style="vertical-align:top;"><b>Password:</b></td>
                        <td style="vertical-align:top;"><input
type="password" name="pw" /></td>
                </tr>
                <tr>
                        <td>&nbsp;</td>
                        <td><input type="submit" class="button"
value="Log In"/></td>
                </tr>
        </table>

        <table border="0" cellspacing="0" cellpadding="5" style="width:550px;">
                <tr>
                        <td style="text-align:center;">
                                <p>If you have forgotten your username
or password, please call Support.</p>
                        </td>
                </tr>
        </table>
</form>
</div>
        </td>
        </tr>

    <tr><td class="tool_container_bottom" height="20"></td></tr></table>
  </td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  </table>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="border-top:1px solid #ABABAB;padding-top:4px;">
<tr>
        <td style="padding-left:15px;">
                Support Line: <strong>1-707-547-3400</strong>&nbsp;&nbsp;
                Email: <a class="menu"
href="mailto:address@hidden";>address@hidden</a><br />
                Mon-Fri 6AM-11PM / Sat-Sun 8AM-10PM (Pacific Time)&nbsp;&nbsp;
                        </td>
        <td style="text-align:right; vertical-align:top; padding-right:15px;">
                <a class="menu" href="/">Sonic Members Home</a> |
<a class="menu" href="http://www.sonic.net/";>Sonic Home</a> |
<a class="menu" href="http://www.sonic.net/sales/";>Sales</a> |
<a class="menu" href="http://www.sonic.net/help/";>Support</a> |
<a class="menu" href="/logout">Logout</a><br />
        </td>

</tr>
</table>
<br/><br/>
</body>
</html>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]