Highlighted
Absent Member.
Absent Member.
418 views

[archive] how to use https to transfer files

[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.
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] how to use https to transfer files

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.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] how to use https to transfer files

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
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] how to use https to transfer files

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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.