Commit 50d88bf4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

FAQ: add --resolve details to question 3.19

parent 1cacf853
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
Updated: March 8, 2011 (http://curl.haxx.se/docs/faq.html)
Updated: December 7, 2011 (http://curl.haxx.se/docs/faq.html)
                                  _   _ ____  _
                                  _   _ ____  _
                              ___| | | |  _ \| |
                              ___| | | |  _ \| |
                             / __| | | | |_) | |
                             / __| | | | |_) | |
@@ -726,6 +726,12 @@ FAQ


    curl --header "Host: www.example.com" http://127.0.0.1/
    curl --header "Host: www.example.com" http://127.0.0.1/


  You can also opt to add faked host name entries to curl with the --resolve
  option. That has the added benefit that things like redirects will also work
  properly. The above operation would instead be done as:

    curl --resolve www.example.com:80:127.0.0.1 http://www.example.com/

  3.20 How to SFTP from my user's home directory?
  3.20 How to SFTP from my user's home directory?


  Contrary to how FTP works, SFTP and SCP URLs specify the exact directory to
  Contrary to how FTP works, SFTP and SCP URLs specify the exact directory to