title: `PUT` error in curl while uploading the xml file on http link
body: <p>I want to upload a single <code>.xml</code> file on the http link.
  For that now I am using curl to upload <code>.xml</code> file.</p>
  
  <p>below is the curl command for uploading the file.</p>
  
  <p><code>curl -i -X PUT -H "Content-Type: application/xml; charset=utf-8" -d @"/Desktop/upload_file.xml" http://website.name/</code></p>
  
  <p>when I do this then there is error as below:</p>
  
  <pre><code>`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
  
  &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;405 Method Not Allowed&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Method Not Allowed&lt;/h1&gt;
  &lt;p&gt;The requested method PUT is not allowed for the URL index.html.&lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;`
  </code></pre>
  
  <p>So what is the main error/problem here? What does it mean <code>requested method PUT is not allowed for the URL</code>?
  Is it error with website link or server configuration? or error with curl command which I passed?</p>
  
  <p>Please give any solution or correction for it.</p>
  
  <p>In simple word How can I upload a single <code>.xml</code> file on the website (http) in LINUX by use of <code>C</code> language?</p>
  
  <p>Thank you in advance.</p>
  
  <p>Regards
  Jaymin D  </p>