oinume journal

Scratchpad of what I learned

Entries from 2014-01-22 to 1 day

curlでHostヘッダーつけてHTTPリクエストを送る

curl -H 'Host:example.com' http://192.168.1.2/alive みたくすると、VirtualHostが設定されているWebサーバでも http://example.com/alive というURLにアクセスしているのと同じことができて便利っていう話。