Uploading a file using HTTp to apache web server.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I am new to apache web server. My objective is to upload a file from a C program.
 
I am facing an issue in uploading a file to APACHE web server on
Linux. I am not able to find the uploaded file at the server.
 
My post request has the following data and the HTTP response is also
OK. if I dont specift  /x.txt in the uri.
 
 
But if I specify /x.txt thenit is  HTTP 404

 

POST /x.txt  HTTP/1.1 \r\n

User Agent : My server  \r\n

Host: x.x.x.x:80 \r\n

Accept:  */* \r\n

Content-Length:  5 \r\n

Content-Type : text\plain \r\n\r\n

 

Hello \r\n\r\n

 

The error log on paache shows.

 

[error][client x.x.x.x] File does not exist /home/users/priya/
public_html/x.txt

 

where  /home/users/priya/public_html has been set to
document_directory in httpd.conf

 

Please help me , I am not able to fix this issue.

 

 

Regards,
Sharmistha

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux