opensubscriber
   Find in this group all groups
 
Unknown more information…

l : leaf-user@lists.sourceforge.net 21 September 2009 • 9:20AM -0400

[leaf-user] wget and --postdata
by Sam Lander

REPLY TO AUTHOR
 
REPLY TO GROUP






Hello,

[First: thanks to all the developers, I have just moved to 3.1.1beta3 and
everything (except for my own fat fingers/brain) has worked just fine.]

My problem is:

   1. I have a cable plan that will, if I break the 'cap' start charging me
   punitively. I want to avoid that.
   2. I like to run a fairly open wireless environment for my friends,
   family and guests.

My proposed solution is to make my LEAF box:

   1. Look up the usage statistics for my account
   2. Apply traffic shaping (or selective turning-off) to stay smoothly
   within the 'cap'


I looked at the usage meter, and it turns out that it is protected by a
https login page and sessionID cookies. Tricky.
So, I installed wget-ssl (thanks for that too!) and tried this beginning
script:

breaker# wget --post-data='password=\[mypasswd]&Action=login' \
   --save-cookies=mycookies.txt \
   --keep-session-cookies \
   https://[usagepageURL]/?username=[myusername]

unfortunately, it gives me:
   wget: unrecognized option `--post-data=password=volley12&Action=login'
   Usage: wget [OPTION]... [URL]...

I suppose because --postdata is not compiled into this wget (Version:
1.8.2-11 Rev 1 uClibc 0.9.28)  or because it wasn't available back then?

Questions:
Am I going about this in a sensible way? and
Is there a wget-ssl that does --postdata?


Many thanks again,

Sam
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@list...
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.