Hello, I have a following scenario (both machines are Windows):
Server: simple Perl script that just generates a random filename, puts it into Content-Disposition header and sends a random text content (of a random length). Client: a simple batch that e.g. 10000x runs this: wget --content-disposition http://server/cgi-bin/randomfile.pl (...so that files are saved under the name offered by the script Content-Disposition header) The point is clear -- I need to generate a random traffic for testing purposes. But the problem is, that wget, when used with --content-disposition option, always first retrieves only headers -- via HTTP HEAD request and then retrieves the content again, via GET, so the script is run twice. So if the script is set up to generate large files, which takes, say, 2 minutes, wget spends 2 minutes waiting for HEAD response and another 2 minutes waiting for GET response. I know this is also issue of the script (as it actually generates content upon a mere HEAD request), but is there any way to retrieve the content immediately, i.e. within one GET request *and* respect filename from Content-Disposition header? Thanks for ideas. Al. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users