User Tools

Site Tools


ubuntu:curl:referer_user_agent

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:curl:referer_user_agent [2019/11/27 00:15] – created peterubuntu:curl:referer_user_agent [2020/09/25 13:10] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== Ubuntu - Curl - Referer & User Agent ====== 
- 
-HTTP requests may include a ‘**referer**’ field, which is used to tell from which URL the client got to this particular page.  Many programs/scripts check the referer field of requests to check the source of the request. You can simulate the referer field by the following command. 
- 
-<code bash> 
-curl -e http://some_referring_site.com  http://www.example.com/ 
-</code> 
- 
-All HTTP requests may set the **User-Agent** field.  It names what user agent or client that is being used.  Many web applications use this information to decide how to display web pages or use it to track browser usage.  You can impersonate a particular browser by the following method: 
- 
-<code bash> 
-curl -A "Mozilla/5.0 (compatible; MSIE 7.01; Windows NT 5.0)" http://www.example.com 
-</code> 
  
ubuntu/curl/referer_user_agent.1574813748.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki