rejetto forum
May 25, 2012, 09:41:11 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: upload text file via POST request  (Read 282 times)
0 Members and 2 Guests are viewing this topic.
ftcove
Occasional poster
*
Offline Offline

Netherlands Netherlands

Posts: 1


View Profile Email
« on: January 03, 2011, 04:53:14 AM »



Hi,

I am trying to upload a text file to the HFS server (2.3 (built 270)). I am using a VB6.0 program
which transmits the following data via Winsock:
 

POST / HTTP/1.1
Host: 192.168.0.2
Content-Type: multipart/form-data, boundary=Y0UreIzL8NdSLWzPHPSDjdPKnDd9ZLyk
Content-Length: 191

--Y0UreIzL8NdSLWzPHPSDjdPKnDd9ZLyk
Content-Disposition: form-data; name="temp.txt"; filename="temp.txt"
Content-Type: text/plain

12341 12342 12343

--Y0UreIzL8NdSLWzPHPSDjdPKnDd9ZLyk--


On the server side I see the following information in the log window.

11:12:22 AM 192.168.0.1:4309 Got 328 bytes
11:12:22 AM 192.168.0.1:4309 Uploading temp.txt
11:12:22 AM 192.168.0.1:4309 Requested POST /
11:12:22 AM 192.168.0.1:4309 Request dump
> POST / HTTP/1.1
> Host: 192.168.0.2
> Content-Type: multipart/form-data, boundary=1wXe4awsh3Pdwou74D4QYXvjnKMt2e16
> Content-Length: 191
11:12:23 AM 192.168.0.1:4309 Served 7.97 K

When look in the folder where “temp.txt” is stored, only an empty file is stored.
Can someone give me some advise/help?

Best regards,
Foort
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: January 11, 2011, 11:29:17 AM »

did you bind the root to a real folder?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page Today at 02:45:05 PM