thank you jkr
I couldn't use your code for my php :(
I changed it but didn't work. I have a project in VB that I can successfully can upload a file using this header:
--------------------------
Content-Disposition: form-data; name="MyFile"; filename="test.txt"
Content-Type: text/plain
these lines are in test.txt that should be uploaded
--------------------------
as you see, "these lines are in test.txt that should be uploaded" is text that is in test.txt that my application reads from the file.
so, how can I change it?
thank you very much
regards
Main Topics
Browse All Topics





by: jkrPosted on 2009-04-05 at 12:36:17ID: 24072662
Hm, the above code would *download* a file from the server, that's not really what you want. After base64-encoding the file you want to send, you can use the code at http://support.microsoft.c om/kb/1652 98 ("How to simulate a Form POST request by using WinInet") to send it like
Select allOpen in new window