Cgi File Upload without Form

Jarek Zgoda jzgoda at
Mon Apr 30 19:28:22 CEST 2007

Karsten.G.Weinert at napisał(a):

>>  Could you explain this statement? When I want to move data to a
>> server in a CGI environment, a form post is the easiest way I can
>> think of. What are the specific restrictions making forms a problem?
> what I was thinking was: a form post is meant to be used manually. But
> maybe I am wrong here and I can teach my VBA program to fill in forms
> automatically. If I were using python as client, I could fill in forms
> with urllib. However, I using python only server-side.

"Form" usually means an action accessible for HTTP POST request with
content-type multipart/form-data. Uploading files is usually done in
this way, if you don't want/cann't use more sophisticated means like
WebDAV (which is HTTP extension, btw).

Jarek Zgoda

More information about the Python-list mailing list