I know that you can manually set some headers with the --header
option, but I want to know what headers it sends without interaction.
wget allows you to send an HTTP request with custom HTTP headers. To supply custom HTTP headers, use "--header" option. You can use "--header" option as many time as you want in a single run. If you would like to permanently set the default HTTP request header you want to use with wget, you can use ~/.
Request headers contain more information about the resource to be fetched, or about the client requesting the resource. Response headers hold additional information about the response, like its location or about the server providing it.
For example, to send a GET request with a custom header name, you can use the "X-Real-IP" header, which defines the client's IP address. For a load balancer service, "client" is the last remote host. Your load balancer intercepts traffic between the client and your server.
Using the -d
(--debug
) option I see it set:
---request begin--- GET / HTTP/1.0 User-Agent: Wget/1.12 (cygwin) Accept: */* Host: www.uml.edu Connection: Keep-Alive ---request end---
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With