urllib/urllib2 help

Gabe Newcomb Gabe.Newcomb at noetix.com
Thu May 2 20:22:33 EDT 2002


I'm doing some automated testing of an API that can be called by http
requests (I'm using POST). For these purposes, I'm using urllib2, which
is working fabulously...except for one thing. Some of the calls require
a browser session to be in existence so that they can keep referring to
it. I'm fairly ignorant of how all of this works, but the one thing I
know is that using urllib2.urlopen() does not create any type of
session.

My question is this: is there any way for me to create a session object
for my testing? Would I have to work with IE's object model or
something? Is there a win32* library for this?

I hope this question is on-topic enough. I love doing my testing in
Python, and I hope I can find a way to keep using it for this effort.

Thanks in advance,

Gabe Newcomb
Software Test Automation Engineer
425.372.2732
Noetix Corporation
www.noetix.com







More information about the Python-list mailing list