667
676
<p class="level1">If this option is used several times, the last one will be used.
668
677
<p class="level0"><a name="-X"></a><span class="nroffip">-X, --request <command></span>
669
678
<p class="level1">(HTTP) Specifies a custom request method to use when communicating with the HTTP server. The specified request will be used instead of the method otherwise used (which defaults to GET). Read the HTTP 1.1 specification for details and explanations. Common additional HTTP requests include PUT and DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and more.
679
<p class="level1">Normally you don't need this option. All sorts of GET, HEAD, POST and PUT requests are rather invoked by using dedicated command line options.
680
<p class="level1">This option only changes the actual word used in the HTTP request, it does not alter the way curl behaves. So for example if you want to make a proper HEAD request, using -X HEAD will not suffice. You need to use the <a class="emphasis" href="#-I">-I, --head</a> option.
670
681
<p class="level1">(FTP) Specifies a custom FTP command to use instead of LIST when doing file lists with FTP.
671
682
<p class="level1">If this option is used several times, the last one will be used.