[Top][All Lists]

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

Re: [Bug-wget] post-data works but post-file does not?

From: Estanislao Gonzalez
Subject: Re: [Bug-wget] post-data works but post-file does not?
Date: Wed, 22 Sep 2010 09:13:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv: Gecko/20100723 Lightning/1.0b2 Thunderbird/3.1.1


try reading the file content directly at the shell. For Linux, something like:

wget --post-data="$(cat post_file.txt)"

If this doesn't work, the problem is in the file.

You can even try an:

echo "wget --post-data=$(cat post_file.txt)"

And see if this is exactly the command you are issuing (maybe even copy and paste it once more). If all this works, the bug is almost sure in wget.

Hope this helps,

On 09/21/2010 11:43 PM, Charles Kozierok wrote:
Identical, I just copy/pasted from the file to the command line.


On Tue, Sep 21, 2010 at 4:59 PM, Keisial<address@hidden>  wrote:
  Charles Kozierok wrote:

Hoping someone can help me out with this.. I just found a weird case
(after banging my head against a wall for a while) where an attempt to
do a wget request with a --post-file= directive results in an internal
server error, but the identical request with the same (very long) POST
string in the command like as --post-data works.

This is a problem for other strings that are too long to put in the
command line.

Any ideas?

Best regards,

Maybe the file version contains something more?
A trailing new line, a leading BOM, different encoding...

Estanislao Gonzalez

Max-Planck-Institut für Meteorologie (MPI-M)
Deutsches Klimarechenzentrum (DKRZ) - German Climate Computing Centre
Room 108 - Bundesstrasse 45a, D-20146 Hamburg, Germany

Phone:   +49 (40) 46 00 94-126
E-Mail:  address@hidden

reply via email to

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