-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi -- I'm trying to get post-file working with wget (1.9.1), talking to Apache 
2.0.48, using PHP 4.3.4.  This is all running on an x86 Linux machine with 
Mandrake 10.

If I do an http post of a file through an HTML form (fill in the blanks with a 
browser, hit submit), the PHP script catches all the data and files, and 
everything is cool.  When I use wget, however, the file does not seem to make 
it there; I'm sure I'm doing something incorrectly--the man page is a bit 
vague on post-file.

The command I think should work with wget is

% wget -O foo.html --post-file data.txt --post-data "varname=worksfine" 
http://localhost/test.php

The PHP script gets the post-data info correctly, but there's nothing listed 
in the files portion.  The PHP arrays for _FILES or HTTP_POST_FILES are blank 
when I use wget.

It's not clear to me if wget is not uploading the file, or if PHP isn't 
figuring out where the file is.  If someone could shed some light on this, 
I'd very much appreciate the help.  I'm trying to build an automated way to 
upload experimental results generated on a bunch of distributed machines onto 
a centralized repository.

Best regards,

Patrick
- --
Prof. Patrick H. Madden   [EMAIL PROTECTED] 
U. Kitakyushu (Japan) and SUNY Binghamton CSD


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCEbxowuzCbpRVKEIRArv0AKDGmD0ugtY7fKntea2MbNmFzlgF6QCfQ+hF
MVuetVSj+OdUo+VUG+AxnvA=
=k1Ow
-----END PGP SIGNATURE-----

Reply via email to