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

From:

Ray Satiro

Subject:

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

Date:

Wed, 22 Sep 2010 17:54:04 -0700 (PDT)

Hello,
--- On Wed, 9/22/10, Charles Kozierok <address@hidden> wrote:
From: Charles Kozierok <address@hidden>
Subject: Re: [Bug-wget] post-data works but post-file does not?
To: "Giuseppe Scrivano" <address@hidden>
Cc: address@hidden
Date: Wednesday, September 22, 2010, 11:59 AM
Yep, that was it. Thanks.
But I guess the bigger question is why a Windows version of wget
wouldn't gracefully handle removal of the standard end-of-line
characters. I'm not even sure I can figure out how to properly write
the data out to the file without the 0A0D at the end.
What's weird is I've used post-file before without this problem. Maybe
the site itself is more "finicky".
On Wed, Sep 22, 2010 at 11:55 AM, Giuseppe Scrivano <address@hidden> wrote:
>
> so we have:
>
> Charles Kozierok <address@hidden> writes:
>
> broken version:
>
>> POST /specifications.aspx HTTP/1.0
>> Referer: http://tmslighting.digiflare.com/specifications.aspx
>> User-Agent: Wget/1.11.4
>> Accept: */*
>> Host: tmslighting.digiflare.com
>> Connection: Keep-Alive
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 911
>
>
>
> working version:
>
>> POST /specifications.aspx HTTP/1.0
>> User-Agent: Wget/1.11.4
>> Accept: */*
>> Host: tmslighting.digiflare.com
>> Connection: Keep-Alive
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 909
>
>
> I think the file/broken version has a final "\r\n" (end-of-line under
> Windows) that the --post-data versione hasn't.
>
> In fact, you can see the Content-Length difference is 2.
>
> Giuseppe
>
I run the GetGnuWin32 project which is a utility that updates all
gnuwin32 packages. For security reasons we're using much more recent versions of
wget and openssl than what's available directly from the GnuWin32
project.
GNU Wget 1.12.1-dev Mar 04 2010 (mainline-013c8e2f5997) built on Windows-MinGW.
Maybe it would help you to try it out?
http://sourceforge.net/projects/getgnuwin32/files/
wget-1.12.1-devel-and-openssl-1.0.0a.zip
If the wget version we're now using doesn't work for you then send the
file that's causing the problem as an actual attachment and the command
line you're using and anything else relevant and I'll try to reproduce.
Thanks,
Jay Satiro on behalf of GetGnuWin32