urllib2 HTTP Error 400: Bad Request

The reason that “the dog” returns a 400 Error is because you aren’t escaping the string for a URL. If you do this: It will work. However I highly suggest you use requests instead of using urllib/urllib2/httplib. It’s much much easier and it’ll handle all of this for you. This is the same code with … Read more

HTTP Error 503, the service is unavailable

It could be that the user identity is outdated, especially if you’ve tried starting a stopped app pool and the next request again fails. In IIS, go to the Application Pools under the Server, then find the correct Application Pool for your web site, and click on it. On the Advanced Settings menu to the … Read more