I want to upload a single .xml
file on the http link.
For that now I am using curl to upload .xml
file.
below is the curl command for uploading the file.
curl -i -X PUT -H "Content-Type: application/xml; charset=utf-8" -d @"/Desktop/upload_file.xml" http://website.name/
when I do this then there is error as below:
`HTTP/1.1 405 Method Not Allowed
Date: Sat, 25 Jul 2015 04:40:00 GMT
Server: Apache
Allow: GET,HEAD,POST,OPTIONS
Content-Length: 240
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL index.html.</p>
</body></html>`
So what is the main error/problem here? What does it mean requested method PUT is not allowed for the URL
?
Is it error with website link or server configuration? or error with curl command which I passed?
Please give any solution or correction for it.
In simple word How can I upload a single .xml
file on the website (http) in LINUX by use of C
language?
Thank you in advance.
Regards Jaymin D