fmt

Gerasimos (Makis) Maropoulos 2019-07-20 19:19:12 +03:00
parent 2c0d9cd365
commit 86a3c95191
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -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
```