and seeing that the issue was a redirect loop to the same URL. This StackOverflow answer mentioned that redirect loops are sometimes used to set and check cookies and the LWP::UserAgent docs on cookies gave the code for the minimal way to enable cookies.
I believe this fixes #75. At least, Twitter also broke for me a few days ago and this change fixed it.
I discovered the issue by changing
to
and seeing that the issue was a redirect loop to the same URL. This StackOverflow answer mentioned that redirect loops are sometimes used to set and check cookies and the
LWP::UserAgent
docs on cookies gave the code for the minimal way to enable cookies.