How come my program can connect to a nonexistent website?

前端 未结 3 845
猫巷女王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条回答
  •  旧时难觅i
    2021-01-13 18:51

    You might be using an ISP that fakes DNS results in order to give you a spam page helpful search page instead of an error for nonexistant names.

    What does a ping Nonexistentsite.com result in on the machine where you tested your Python code?

提交回复
热议问题