简体   繁体   中英

python request.get always throws status code 200

python request.get always throws status code 200. This is coming even after adding an user agent in the request.get( ). As status_code is always 200, a file from that website is downloaded even if doesn't exists there. How to get correct atatus_code?

200 - "The HTTP 200 OK success status response code indicates that the request has succeeded." This means it worked, Now. on to the next steps..: :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM