Wednesday, 25 January 2017

How to pass request header with wget and curl ?




Use --header with wget  
wget --header="Host:my-host.com" 'http://10.106.208.110:80/myservice'

Use -H with curl
curl -H 'Host: my-host.com' http://10.106.208.110:80/myservice

No comments:

Post a Comment

Note: only a member of this blog may post a comment.