Thursday 5 December 2013

Significance of User-Agent Field: Detection of Automated/Programatic HTTP Requests....!

Suppose you request a webpage using a program, say a Python script. Have you ever wondered whether a web server can differentiate it from a manual request by a user via a web browser, say Firefox. Yes it is possible for the web server to differentiate using various methods. One such method is analyzing the value of the 'User-Agent' field in the HTTP request header from the client.

You can see the difference from the output of the following Python script:

The output of the above script is:

1 comment:

  1. casino.org - drmcd
    Casino.org is 광주 출장샵 the world's leading 강원도 출장마사지 independent independent online gambling authority. Casino information from the best gambling providers 부산광역 출장안마 in the 경산 출장샵 industry. Get your 대전광역 출장샵 tips delivered  Rating: 3.4 · ‎7 votes

    ReplyDelete