I am trying access a REST API.
I can get it working in Curl/REST Client (the UI tool), with preemptive authentication enabled.
But, using urllib2, it doesn't seem to support this by default and I can't find a way to turn it on.
Thanks :)
Depending on what kind of authentication is required, you can send the Authorization headers manually by adding them to your request before you send out a body.
does urllib2 support preemptive authentication authentication?