Being new to wget (I'm using GNU Wget 1.10.2 for Windows) I'm trying to log into www.openbc.com. It works perfectly with a browser, but I can't get it to work with wget.

As www.openbc.com page source contains
  <input type="text" name="login_user_name" class="login" />
  <input type="password" name="login_password" class="login" />

I'm trying
wget --no-check-certificate --keep-session-cookies --save-cookies cookies.txt --post-data "login_user_name=<MyRealUserName>&login_password=<MyRealPassword>" https://www.openbc.com

and I'm receiving

--22:06:33--  https://www.openbc.com/
           => `index.html'
Resolving www.openbc.com... 213.238.59.20
Connecting to www.openbc.com|213.238.59.20|:443... connected.
WARNING: Certificate verification error for www.openbc.com: unable to get local issuer certificate
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
    [ <=>                                 ] 8.233         --.--K/s
22:06:33 (193.24 KB/s) - `index.html' saved [8233]

But the cookie file is empty:
# HTTP cookie file.
# Generated by Wget on 2006-04-24 22:06:33.
# Edit at your own risk.

Browsing index.html, I'm finding two strange messages:

"Your browser cookies couldn't be recognized." and
"You need to have cookies activated to log in."

I tried adding wget options
--cookies (just in case --no-cookies was has somehow been set) and
-U "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8) Gecko/20051107 Firefox/1.5" (just in case if openbc.com checks the user-agent)

But no change.

Can anyone help?  What am I doing wrong here?  Thanks!!

Reply via email to