mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-02 03:44:43 +00:00
send user agent
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2488 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
eeb6da8330
commit
8607c80e82
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ def main (url):
|
|||
h.connect()
|
||||
h.putrequest("HEAD", path, skip_host=True)
|
||||
h.putheader("Host", host)
|
||||
h.putheader("User-Agent", "linkchecker")
|
||||
h.endheaders()
|
||||
req = h.getresponse()
|
||||
print req.msg
|
||||
|
|
|
|||
Loading…
Reference in a new issue