How come my program can connect to a nonexistent website?

前端 未结 3 823
猫巷女王i
猫巷女王i 2021-01-13 18:27

I am new to python and network programming and I am having trouble with a simple program. I am basically opening a connection to a nonexistent website and somehow it seems t

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 18:55

    I tested this except I used www.google.com instead. This came up with 302 Found. After a bit of googling I found out that 302 Found means that there is a redirection. This probably means that users are redirected to the right Google site for their reigon for example www.google.co.uk for UK. The 302 - Moved Permanently is probably the same thing but it just comes up different for IronPython.

    edit -

    It exists because Google is still running that server and is performing redirections.

提交回复
热议问题