aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-07 23:08:15 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-07 23:08:15 +0100
commit50d88bf4b54114872c78f3d7e34c43cdffa2f69a (patch)
tree9b934821b3c515df0018252b7999aeb506301058 /docs
parent1cacf853da30edb8a9f6b834df43ee639a1811f2 (diff)
FAQ: add --resolve details to question 3.19
Diffstat (limited to 'docs')
-rw-r--r--docs/FAQ8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/FAQ b/docs/FAQ
index a82f349bb..e8b001e63 100644
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -1,4 +1,4 @@
-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/
+ 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?
Contrary to how FTP works, SFTP and SCP URLs specify the exact directory to