Hi,
This is a RFE as I think the docs or the --help could perhaps be
improved. See below.
I´ve done simple username and password style http-post requests before
with wget, but now I´m trying to do something a bit more complex:
#1 Retrieve an URL (txt), keep session cookies, and then
#2 Post that txt file as one of the http post variables, along with
two other variables (username and password).
Well, it´s not clear by looking at the docs how to accomplish that. I
mean, if I use
--post-data 'user=foo&password=bar' that sends the two vars, but how
do I make it send the contents of file.txt as var content as part of
the same request?
wget --help reads:
--post-data=STRING use the POST method; send STRING as the data.
--post-file=FILE use the POST method; send contents of FILE.
Well, I want to send --post-data="user=foo&password=bar"
--post-file="contents=" content.txt {url}
Sorry if I'm missing something obvious.
If there's no way to combine the two http-post arguments above,
suppose it's only possible to do a --post-file, then how I encode
user=foo and password=bar as part of content.txt that I need to send
as a third var?
Get my point now? It's not clear at all...
Thanks in advance.
FC