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

XOOPS is a dynamic OO (Object Oriented) based open source portal script written in PHP.

developer Developer: http://www.xoops.org
license License: Freeware
operating systems Operating System: win, linux, unix, etc


MaxWebPortal is a web portal and online community system which includes advanced features such as web-based administration, poll, private/public events calendar, user customizable color themes, classifieds, user control panel, online pager, link, file, article, picture managers and much more.

developer Developer: http://www.maxwebportal....
license License: Freeware
operating systems Operating System: Win 95/98/ME/2000/XP, Access 97/2000, SQL


HTML::Mason is a web site development and delivery system that constructs web pages and sites from shared, reusable building blocks called components.

developer Developer: Mason Team
license License: GNU General Public License (GPL)
operating systems Operating System: Apache


Super-dot.

developer Developer: Robert
license License: Unknown
operating systems Operating System: Not Available


Provides Slackware web hosting, shell accounts and domain registration.

developer Developer: CretaForce
license License: Unknown
operating systems Operating System: Not Available


Amdac Systems has been setting new standards in web hosting, software development, and marketing solutions since 2002.

developer Developer: Dave
license License: Unknown
operating systems Operating System: Not Available


We offer $1 Cheap, Free Setup, Reliable, Unlimited Domains Reseller/Shared Hosting.

developer Developer: Sonia
license License: Unknown
operating systems Operating System: Not Available


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