Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This code creates an HTTP session, sets a cookie within that session, makes another request that automatically includes the cookie, and then prints the response showing the cookies that were sent.

I may miss the error, but could you elaborate where it is?



The url variable is never defined


Yes it is, just before the pasted section.


oh you are right, nevermind then




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: