1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

curl +ssl

Discussion in 'Tomato Firmware' started by puddle, Nov 9, 2007.

  1. puddle

    puddle LI Guru Member

    anyone managed to get curl+ssl working? I have been trying to compile them into the firmware for about a week now and have not really achieved much.

    reason is, I am on a isp that doesnt do shaping, and thier usage meter is rubbish, so I have almost got a script working that can parse thier website (ssl+cookies+3 forms) to download the data and store it in a local file every 30mins. Once its on thier, I can enforce my own shapes/qos based and turn the link off when i hit my quota via a bash script and cron.

    Anyways, thats why I am trying to do it, but in the end, I need curl. Initially, I was going to use python, however, the python binary/env is just too big for this device I feel. am I wrong?

    Any suggestions would be appreciated.

  2. Macskeeball

    Macskeeball LI Guru Member

    What about wget + ssl? I know that Tomato has wget, and I'm guessing (albeit uncertain) that Jon added SSL support to it in order to support OpenDNS as a DDNS in 1.08+.
  3. roadkill

    roadkill Super Moderator Staff Member Member

    the opendns client was modified by Jon.
    wget in Tomato is supplied by busybox and currently doesn't support SSL.
  4. puddle

    puddle LI Guru Member

    wget wouldnt work, I need to use curl to manage the cookies that I need to utilise and I need to post data back to the page based on output from the previous, trust me, its a pain in the *$#%. I will keep working on getting it to compile.

    Thanks :)
  5. puddle

    puddle LI Guru Member

    well, i have managed to get it all to work via wget... but I need a real wget, the standard one is just a tad cut down, no ssl for example.. time to try and compile one I guess :)
  6. roadkill

    roadkill Super Moderator Staff Member Member

    don't, real wget isn't so small....
    use newer busybox which supports the ssl function
  7. puddle

    puddle LI Guru Member

    i would love too.. problem is... my ISP's usage meter. I have a shell script that I can use either wget or curl with. However I need the following features.

    + SSL
    + cookie management
    + POST support

    Only bloat'y binaries give that too me. I have a version in python and I could write one in php and maybe even perl, main problem is, they are all big binaries.

    I guess I have to bite the bullet and give in on having the WHOLE solution on the router. The parser/downloader might have to be somewhere else and the logfile available via samba.
  8. mstombs

    mstombs Network Guru Member

    I just checked my uNSLUng NSLU2 which runs a daily php script to download EPG data to my TV box, the php binary alone is 2.7Mb ! No wonder it needs to boot from a USB disk! You don't say what router you are using:- my wrt54GS v1.1 has 8Mb flash and 32Mb ram for example, which allows a lot of room for jffs utils as Tomato is so slim! I also wonder if Tomato is the right starting point for you - OpenWrt has many pre-packaged apps which may help (but of course you lose the nice Tomato GUI and have to do everything via configuration files - until x-wrt is sufficiently mature)
  9. puddle

    puddle LI Guru Member

    Sorry, I have a WRT54GL. I have been looking at openWRT as well as the idea of doing the SD flash mod to my GL to give me some space for some bigger binaries.

    openWRT could work for me, I am not too upset about dropping a gui, the live data usage is handy, but I can replace that with snmp+rrdtool.

    I will keep trucking on, I have a cobalt qube at home thats mips, going to get debian onto it this weekend and play some more with compilers... I had hoped I would come up with a solution I could give to a few other people, and openWRT wont fly for them.

    However, this little mouse might take priority for now.


Share This Page