bug-wget
[Top][All Lists]
Advanced

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

RE: [Bug-wget] Problem with --post-data


From: Tony Lewis
Subject: RE: [Bug-wget] Problem with --post-data
Date: Thu, 10 Dec 2009 20:10:24 -0800

The error is being reported by your command-line processor (bash), not wget.

Another alternative is to put the POST data into a file and then use
--post-file. (The POST file needs to include the 'data=' as well as the
contents of infile.txt.)

Tony
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Liza
Al-Shikhley
Sent: Thursday, December 10, 2009 8:43 AM
To: address@hidden
Subject: [Bug-wget] Problem with --post-data

Dear all,

I'm trying to download the content of a file with this command line:

wget --post-data="data=`more infile.txt`" "myServer" -O resultfile.txt

It works if infile.txt is a small file: I retrieve the content of infile.txt
in resultfile.txt
But if infile.txt is a much bigger file, I get this message:

-bash: /opt/local/bin/wget: Argument list too long.

How can I fix this problem?

Thank you very much for your help.

Best regards,

Liza





reply via email to

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