[mod_python] How do I do this - mimic a browser calling javascript

happybrowndog happybrowndog at hotmail.com
Tue Jan 15 19:34:46 EST 2008


How do I do this?

I'm running mod_python.  The apache server is also a proxy for another 
web server.  In one of my mod_python scripts, I need to mimic a browser 
and call into the proxied web server... specifically, I need to make a 
javascript call.  I'm not concerned about the result of the call, other 
than to know it worked.  The javascript call in question is:

dojox.cometd.publish(’/channel’, json_object);

which requires includes of several javascript source files.

I looked into urllib and saw only things to do POST and GET, which is 
not suitable.





More information about the Mod_python mailing list