Hello, --- On Wed, 9/22/10, Charles Kozierok <[email protected]> wrote:
From: Charles Kozierok <[email protected]> Subject: Re: [Bug-wget] post-data works but post-file does not? To: "Giuseppe Scrivano" <[email protected]> Cc: [email protected] 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 <[email protected]> wrote: > > so we have: > > Charles Kozierok <[email protected]> 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
