Re: File upload/download to https server

2008-01-30 Thread Paul M. Hirsch
On 30/01/2008, Stuart VanZee <[EMAIL PROTECTED]> wrote:
> I have an upcoming project where I need to be able to automate the upload
> and
> download of files to/from an HTTPS server (not owned by me).  The server
> says
> it requires 128 bit encryption.  I would like to be able to do this using
> python because it is the language that I know the best and it is available
> on
> the OpenBSD box that I would like to do this all from.  (please note I am
> not
> a real great programmer, but I get by).
>
> I have done some research and found py-OpenSSL in ports, and on another
> project have used ClientForm for python although I haven't figured out how
> to
> get them to work together.
>
> Am I going in the right direction?  Is what I need to do even possible?

You should be able to do this with the stock Python port and this:
http://odin.himinbi.org/MultipartPostHandler.py

Stock urllib2 can handle all the HTTPS work, cookielib any cookie needs, and
MultipartPostHandler will take care of building out the proper multipart
form with file data.

-Paul

-- 
// Paul M. Hirsch  //
// paul at voltagenoir.org //
// PGPkeyID 0x92205DEF //



Re: File upload/download to https server

2008-01-30 Thread Nick Bender
> I have an upcoming project where I need to be able to automate the upload and
> download of files to/from an HTTPS server (not owned by me).  The server says
> it requires 128 bit encryption.  I would like to be able to do this using
> python because it is the language that I know the best and it is available on
> the OpenBSD box that I would like to do this all from.  (please note I am not
> a real great programmer, but I get by).

ftp my do the job depending on your specific needs.

OpenBSD's ftp supports https URLs, no programming or ports needed

-N



Re: File upload/download to https server

2008-01-30 Thread arthur
Personally I like to use stunnel to wrapper my tcp application to connect to
a ssl server/client. So you don't need to spend too much time on make them
'working together'.

Arthur
- Original Message - 
From: "Stuart VanZee" <[EMAIL PROTECTED]>
To: "Openbsd Misc (E-mail)" 
Sent: Wednesday, January 30, 2008 10:58 AM
Subject: File upload/download to https server


> Hello everyone.
>
> I have an upcoming project where I need to be able to automate the upload
and
> download of files to/from an HTTPS server (not owned by me).  The server
says
> it requires 128 bit encryption.  I would like to be able to do this using
> python because it is the language that I know the best and it is available
on
> the OpenBSD box that I would like to do this all from.  (please note I am
not
> a real great programmer, but I get by).
>
> I have done some research and found py-OpenSSL in ports, and on another
> project have used ClientForm for python although I haven't figured out how
to
> get them to work together.
>
> Am I going in the right direction?  Is what I need to do even possible?
>
> Thank you for any help.
>
> Stuart van Zee
> [EMAIL PROTECTED]



Re: File upload/download to https server

2008-01-30 Thread Frédéric Plé
Hello,

I don't know Python but cURL provide several APIs to do that from various
programming languages (check http://curl.haxx.se/libcurl/bindings.html ).
curl (CLI version) can be found in ports.

Regards

On 30/01/2008, Stuart VanZee <[EMAIL PROTECTED]> wrote:
>
> Hello everyone.
>
> I have an upcoming project where I need to be able to automate the upload
> and
> download of files to/from an HTTPS server (not owned by me).  The server
> says
> it requires 128 bit encryption.  I would like to be able to do this using
> python because it is the language that I know the best and it is available
> on
> the OpenBSD box that I would like to do this all from.  (please note I am
> not
> a real great programmer, but I get by).
>
> I have done some research and found py-OpenSSL in ports, and on another
> project have used ClientForm for python although I haven't figured out how
> to
> get them to work together.
>
> Am I going in the right direction?  Is what I need to do even possible?
>
> Thank you for any help.
>
> Stuart van Zee
> [EMAIL PROTECTED]



File upload/download to https server

2008-01-30 Thread Stuart VanZee
Hello everyone.

I have an upcoming project where I need to be able to automate the upload and
download of files to/from an HTTPS server (not owned by me).  The server says
it requires 128 bit encryption.  I would like to be able to do this using
python because it is the language that I know the best and it is available on
the OpenBSD box that I would like to do this all from.  (please note I am not
a real great programmer, but I get by).

I have done some research and found py-OpenSSL in ports, and on another
project have used ClientForm for python although I haven't figured out how to
get them to work together.

Am I going in the right direction?  Is what I need to do even possible?

Thank you for any help.

Stuart van Zee
[EMAIL PROTECTED]