Fernando Cassia wrote: > Hi Micah, > > Thanks for the prompt reply, my comments below... > > On Wed, Feb 18, 2009 at 1:24 PM, Micah Cowan <[email protected]> wrote: > >> Note that --post-file is not for "attaching files" to a form post: > > Now, that sounds like a good Request for Enhancement, doesn't it? :-))
https://savannah.gnu.org/bugs/index.php?20336 :) > Well this is no big deal, I mean, I could probably stick the username > and password at the beginning of the file. > The crux of the matter here is if it would accept a file full of CR/LF > chars.... or does it also expect the file to have the whole string on > a single line?? I believe all CR/LF have to be percent-encoded, everything on one line. It probably depends somewhat on the server. >> Currently to post files, you have >> to specify them as a regular name/value pair, and take care to >> percent-encode the file contents (yuck!). > > Is there any easy way to achieve this from shell? anything in gnu > shellutils perhaps? bash? Well, sed or perl wouldn't make it _too_ hard... -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. GNU Maintainer: wget, screen, teseq http://micah.cowan.name/
