urllib2 for actions depending on http response codes

Category: Python - Miscellaneous

I wanted to touch a particular web page (in order to open/close a database connection inside of Zope) so I came up with this module which uses urllib2 to make the web connection

I was not sure what a 'realm' was, so first I made the HTTPRealmFinder to find out what the realm is.

The HTTPinger calls my required page and acts according to the http return code. Date: 19 May, 2012


Web

Homepage: http://code.activestate.com/recipes/267197-urllib2-for-actions-depending-on-http-response-cod/?in=lang-python

Developer: Lee Harr

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Apache is a powerful, flexible, web server.

developer Developer: The Apache Software Foundation
license License: Apache License
operating systems Operating System: daemon


Web-based software for submission and review of papers to academic conferneces.

developer Developer: Shai Halevi
license License: Common Public License
operating systems Operating System: All


Platform for PHP which has gambArt GUI framework for standalone desktop application development, Semok web application framework, and classes collection (distributed computing, networking, compression, byte compiler, SMS, XML, and database abstraction).

developer Developer: Reza Iqbal
license License: Common Public License
operating systems Operating System: Linux, Windows


Free application that allows you to play music on your website.

developer Developer: Andrey Markin
license License: Freeware
operating systems Operating System: Not Available


Another amazing Script from Dr.

developer Developer: Dr.Surajit Sarkar
license License: Freeware
operating systems Operating System: Unix,Linux,Windows


Pheap offers a simple, bold interface that masks a powerful content management system.

developer Developer: Spencer Akers
license License: Freeware
operating systems Operating System: ALL


dhtmlxToolbar is a free JavaScript Toolbar with high functionality, XML support, cross-browser compatibility and rich API.

developer Developer: Ivan Petrenko
license License: Freeware
operating systems Operating System: Win 9x, Win ME, WinNT, Windows 2000, Win XP, Windows 2003, Unix, Linux, Mac OS X, Mac Other


Programs that deal with measured quantities usually make an implicit assumption of the measurement unit, a practice which is error prone, inflexible and cumbersome.

developer Developer: George Sakkis
license License: Python License
operating systems Operating System: Windows


Various sources (but principally Hammond and Robinson) show how to instantiate Internet Explorer in order to have access to its interfaces.

developer Developer: Bill Bell
license License: Python License
operating systems Operating System: Windows