Skip to main content

[archive] how to use https to transfer files

  • January 5, 2011
  • 5 replies
  • 0 views

[Migrated content. Thread originally posted on 04 January 2011]

Have an issue. I need to unload and download files using https.
are there any good examples of this being done from a cobol program.
I'm currently working with the wininet.dll to try and accomplish this.
but run into issue trying to "PUT" the file
then I'll also need to "GET" the file on the other end.
NO FTP is not an option here.

5 replies

[Migrated content. Thread originally posted on 04 January 2011]

Have an issue. I need to unload and download files using https.
are there any good examples of this being done from a cobol program.
I'm currently working with the wininet.dll to try and accomplish this.
but run into issue trying to "PUT" the file
then I'll also need to "GET" the file on the other end.
NO FTP is not an option here.
You don't provide much insight in what you do. But here is an example I used at a conference some years ago. The url used is probably long gone, but you should get the idea.

I haven't tested this with https though.

[Migrated content. Thread originally posted on 04 January 2011]

Have an issue. I need to unload and download files using https.
are there any good examples of this being done from a cobol program.
I'm currently working with the wininet.dll to try and accomplish this.
but run into issue trying to "PUT" the file
then I'll also need to "GET" the file on the other end.
NO FTP is not an option here.
Sorry for the iffey question but I'm trying to create a routine to transfer files
using wininet and its http functions. eventually using https. Based on your example I think my issue is KISS. My approch was to open a connection and then make requests for a particular file and either download or upload from the http site.
The app will handle any number of files being passed in either direction.
your example makes it look simple. so I think my issue was I went way overboard on what is actually need to be used to perform the process.
your example uses none of the http??????? methods but instead uses the internet???? methods. my reference was wininet http sessions on microsoft web site.
This routine may end up having to transfer vision and text files.
if you care to go direct and by pass the forum e-mail me at rbonnell@rtafleet.com
I'll try and get more detailed
thanks
Ryan

[Migrated content. Thread originally posted on 04 January 2011]

Have an issue. I need to unload and download files using https.
are there any good examples of this being done from a cobol program.
I'm currently working with the wininet.dll to try and accomplish this.
but run into issue trying to "PUT" the file
then I'll also need to "GET" the file on the other end.
NO FTP is not an option here.
Sorry for the iffey question but I'm trying to create a routine to transfer files
using wininet and its http functions. eventually using https. Based on your example I think my issue is KISS. My approch was to open a connection and then make requests for a particular file and either download or upload from the http site.
The app will handle any number of files being passed in either direction.
your example makes it look simple. so I think my issue was I went way overboard on what is actually need to be used to perform the process.
your example uses none of the http??????? methods but instead uses the internet???? methods. my reference was wininet http sessions on microsoft web site.
This routine may end up having to transfer vision and text files.
if you care to go direct and by pass the forum e-mail me at rbonnell@rtafleet.com
I'll try and get more detailed
thanks
Ryan

[Migrated content. Thread originally posted on 04 January 2011]

Have an issue. I need to unload and download files using https.
are there any good examples of this being done from a cobol program.
I'm currently working with the wininet.dll to try and accomplish this.
but run into issue trying to "PUT" the file
then I'll also need to "GET" the file on the other end.
NO FTP is not an option here.
Sorry for the iffey question but I'm trying to create a routine to transfer files
using wininet and its http functions. eventually using https. Based on your example I think my issue is KISS. My approch was to open a connection and then make requests for a particular file and either download or upload from the http site.
The app will handle any number of files being passed in either direction.
your example makes it look simple. so I think my issue was I went way overboard on what is actually need to be used to perform the process.
your example uses none of the http??????? methods but instead uses the internet???? methods. my reference was wininet http sessions on microsoft web site.
This routine may end up having to transfer vision and text files.
if you care to go direct and by pass the forum e-mail me at rbonnell@rtafleet.com
I'll try and get more detailed
thanks
Ryan

[Migrated content. Thread originally posted on 04 January 2011]

Have an issue. I need to unload and download files using https.
are there any good examples of this being done from a cobol program.
I'm currently working with the wininet.dll to try and accomplish this.
but run into issue trying to "PUT" the file
then I'll also need to "GET" the file on the other end.
NO FTP is not an option here.
Hi Ryan, I don't do direct help, sorry.

If you are going to transfer files, I suggest you consider c$socket, if you search acu support pages there should be one of the former newsletters that has an example of doing a ftp.

However, c$socket will not do https.

Perhaps you should consider using an activex.