diff --git a/HTTP-referer.md b/HTTP-referer.md index 0b0a042..6ed9bad 100644 --- a/HTTP-referer.md +++ b/HTTP-referer.md @@ -1,4 +1,4 @@ -The HTTP referer is an optional HTTP header field that identifies the address of the webpage (i.e. the URI or IRI) which is linked to the resource being requested. By checking the referrer, the new webpage can see where the request originated. +The HTTP referer(originally a misspelling of **referrer**) is an optional HTTP header field that identifies the address of the webpage (i.e. the URI or IRI) which is linked to the resource being requested. By checking the referrer, the new webpage can see where the request originated. Read more at [wikipedia](https://en.wikipedia.org/wiki/HTTP_referer) @@ -78,6 +78,10 @@ func main() { How to `curl`: ```sh -curl http://localhost:8080?referer=https://twitter.com/Xinterio/status/1023566830974251008 -curl http://localhost:8080?referer=https://www.google.com/search?q=Top+6+golang+web+frameworks&oq=Top+6+golang+web+frameworks +curl http://localhost:8080?\ +referer=https://twitter.com/Xinterio/status/1023566830974251008 + +curl http://localhost:8080?\ +referer=https://www.google.com/search?q=Top+6+golang+web+frameworks\ +&oq=Top+6+golang+web+frameworks ```