Hi' Guys,
I really have a problem figuring out how to send a file via HTTP to a webserver, using Visual Basic or any other programming language. On the Internet there are lot's of examples showing how to send information and even a file from within a HTML FORM, but that is not what I am looking for. I use a PHP script to recieve the file and treat it on the webserver. Here is my code.
POST /recievefile.php HTTP/1.1
Host: localhost
Accept: /
Connection: close
Content-Type: form-data; name="FileItem"; filename = "C:\testfile.xml"
Content-Type: text/xml
Content-Length: 10
ehjksdlfsj
And here is what i receive:
HTTP/1.1 200 Document Follows
Connection: close
Content-Type: text/html
Date: Sat, 21 Jul 2001 09:14:51 GMT
Server: OmniHTTPd/2.08
X-Powered-By: PHP/4.0.4pl1
Possible file upload attack: filename : ''. Userfile_name : Userfile_size : Userfile_type :
the php program does not see anyfile.
Please help me.
I have tried looking at w3c.org and downloaded their information about HTTP, but I can't find what I am looking for.
Bye Claus
Clausbl@hotmail.com