Cgi File Upload without Form

2007-04-27 Thread Karsten . G . Weinert
Hello,

what is the simplest way to upload a file (or a long string) to a
server using cgi/python?

Since I want to upload the data programmatically, a form based
solution is not good. I am not experienced with SOAP/WSDL and I
believe that would be more difficult than necessary. The client
program I have to use does not support FTP.

Any hint appreciated, kind regards,
Karsten.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Cgi File Upload without Form

2007-04-30 Thread Karsten . G . Weinert
Thanks for your replies, however I think urlllib can not help me here.
I have control over the server side (I can write a cgi-script in
python), but I have very little control on the client side (I have to
use VBA).

Kind regards,
Karsten.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Cgi File Upload without Form

2007-04-30 Thread Karsten . G . Weinert
On 30 Apr., 15:51, "Dave Borne" <[EMAIL PROTECTED]> wrote:
> > Since I want to upload the data programmatically, a form based
> > solution is not good.
>
> Karsten,
>  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?
>
> -Dave

Hello Dave,
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.

Kind regards,
Karsten.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Cgi File Upload without Form

2007-04-30 Thread Karsten . G . Weinert
OK, I think I have a simple solution now. I am going to use FTP in my
VBA-Client (it's possible) and don't need to do any server-side
programming.

Kind regards,
Karsten.

-- 
http://mail.python.org/mailman/listinfo/python-list