Hacker News new | past | comments | ask | show | jobs | submit login

Does the variable "r" in your first example afford you anything more than what you can get from requests.post? e.g. Can you capture a return value from requests.post, and does it give you the same information to help debug that http.request gives?



> e.g. Can you capture a return value from requests.post

Yes, I just didn't in my toy example. That's the response object, which will typically include all the response info, plus reponse.request, which has request info.

> and does it give you the same information to help debug that http.request gives?

I'm not positive, but I'd bet it's similar.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: