I am stuck on a minor problem that someone here could probably help me with. I have posted this a few times now and gotten no answers so ANY help is greatly appreciated. I am trying to simulate an HTTP request to the Zope Server using the techniques described in the "Testing and Debugging" chapter of the Developers Guide:
ZPublisher.Zope('') Status: 200 OK X-Powered-By: Zope (www.zope.org), Python (www.python.org) Content-Length: 1238 Content-Type: text/html
<HTML><HEAD><TITLE>Zope</TITLE> ... blah blah... </BODY></HTML>
However, I am unable to get the simulated HTTP requests to return anything when I mimic the tutorial:
ZPublisher.Zope('http://localhost:8080/')
Status: 404 Not Found ..... <P><STRONG>Resource not found</STRONG></P> Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p><b>Resource:</b> http://127.0.0.1/Zope/h ttp%3A</p> .....
I noticed that (http://127.0.0.1/Zope/h ttp%3A) is being called instead of (http://127.0.0.1:8080/). It seems that I need to set the SERVER_URL environment variable to (http://localhost:8080/). I have tried doing so like this:
ZPublisher.Zope("http://localhost:8080/", -e SERVER_URL="http://localhost:8080")
but I get a syntax error. Can ANYONE answer my (apparently) stupid questions? Do I need to set the SERVER_URL environment variable prior to debugging? Is there something wrong with my Zope installation? Am I retarded beyond belief? Thanks Everyone, Derek Basch __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com