[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] POST file with several requests (HTTP 1.1)

From: Alexandre Vieira
Subject: Re: [Bug-wget] POST file with several requests (HTTP 1.1)
Date: Tue, 3 Aug 2010 11:00:31 +0100

Hi Giuseppe,

On Mon, Aug 2, 2010 at 11:26 PM, Giuseppe Scrivano <address@hidden>wrote:

> Hi Alexandre,
> Alexandre Vieira <address@hidden> writes:
> > I need to submit several POSTs in a row in a single connection (i.e HTTP
> 1.1
> > persistent connection).
> >
> > I've tried:
> >
> > /usr/local/bin/wget --user-agent="MyUserAgent/3.0/1.0"
> --auth-no-challenge
> > --http-user="myUser" --http-password="myPWD" --header "Pragma: no-cache"
> > --header "Cache-Control: no-cache" --header "Connection: keep-alive"
> > --header "Content-Type: text/xml" --header "Accept: text/html, image/gif,
> > image/jpeg, *; q=.2, */*; q=.2" --post-file=foobar
> >
> >
> > Where foobar contains two different POST (xml) requests separated by a
> >
> > When I execute the command it will post my first request but ignore the
> > second line of the file.
> >
> > Is it possible to send all the requests in the file?
> AFAICS, when you specify a file to --post-file, the whole content is
> used for the request.
> Are you sure it is not the web application that considers only the first
> XML file (ignoring the second line)?
> Cheers,
> Giuseppe

Thanks for the prompt answer.

I've taken a tcpdump and I confirm that wget indeed sends the two lines in
the request but only sends one POST.

The application is not ready and ignores the rest of the XML request.

Is it possible to have wget to send a different POST for each line on the
file in an HTTP 1.1 persistent connection or HTTP 1.0 "Connection:
Keep-alive" connection? Like having the connection up and feed it trough
stdin or something similar?

Thanks in advance


reply via email to

[Prev in Thread] Current Thread [Next in Thread]