Paolo Dina wrote at 2004-9-15 12:59 +0200:
I need to call a Python script (that simply creates a new folder object with a unique name) via wget.
When I manually invoke the command using via shell,
wget -d --spider --http-user=myuser --http-passwd=mypassword http://my.url.it/intranet/reset_portal_content/ZScriptHTML_tryForm
the folder object isn't created,
Are you sure?
while calling the script via Test tab from the ZMI works correctly.
The thing that makes me dubious against this misbehaviour, is the server response "302 Moved Temporarily".
This is a redirect, performed by many ZMI actions after they are successful. Most management function do not perform a redirect when they are not called with REQUEST/RESPONSE. Otherwise, you can suppress the redirect with a following ...RESPONSE.setStatus(200) return 'done' -- Dieter