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

http-put to pachube

Discussion in 'Tomato Firmware' started by queBurro, Jun 13, 2010.

  1. queBurro

    queBurro Networkin' Nut Member

    hi,

    I'm trying to put some data to pachube from my tomato flashed router and I've got no http-put and I can't work out how to install it. Would appreciate answers to any of the following :)

    What's the tomato equivalent of ipkg?
    Is curl available? all I really need is http-put, is there such a thing as wput? any thoughts on a work-around?
    Is there an optware package available with binaries for tomato? I don't fancy running someone else's download script when all I really want is to download a couple of binaries to my flash drive?

    and... I've never compiled anything for a router, do you have to install gcc to it or can you compile with a different target on my laptop?

    any thoughts appreciated, TIA :)
     
  2. queBurro

    queBurro Networkin' Nut Member

  3. rhester72

    rhester72 Network Guru Member

    I just compiled curl and put it on my utilities site.

    Never seen/heard of http-put, URL welcomed. :)

    Rodney
     
  4. queBurro

    queBurro Networkin' Nut Member

    cheers for the reply, I might have meant http post as a request and not put,

    ok, how do I compile curl then for tomato? is this tool chain stuff?
     
  5. rhester72

    rhester72 Network Guru Member

    I've already compiled it - check my utilities web site for the binary.

    Rodney
     
  6. queBurro

    queBurro Networkin' Nut Member

    sorry, I need a link to your website :)
     
  7. rhester72

    rhester72 Network Guru Member

  8. queBurro

    queBurro Networkin' Nut Member

  9. queBurro

    queBurro Networkin' Nut Member

    FYI - http-put...
    scroll down to nu.5 in the list
    http://curl.haxx.se/docs/httpscripting.html
     
  10. rhester72

    rhester72 Network Guru Member

    Based on what it says, http-put is a thing you do, not a piece of code/utility. You'll have to have some sort of CGI-aware web server (I recommend hiawatha if running on the router) and a piece of CGI you write to accept the upload from curl. curl itself supports HTTP put requests intrinsically.

    Rodney
     

Share This Page