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: [email protected] [mailto:[email protected]] On Behalf Of Liza Al-Shikhley Sent: Thursday, December 10, 2009 8:43 AM To: [email protected] 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
