[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New project....but where to start??
OK I think I have the MD5 under control but now I have another
question.
As part of this proof of concept project I not only have to GET a file
I have to also PUT a file.
The url is
_[1]https://<hostname of appliance>/seos/<application ID>/put/<MD5
hash token>/<file handle>
The documentation suggests I am initiating an api on the "appliance".
This all being new to me, I am unclear as to whether I am doing a
http_url_post_stmf or if I am actually consuming a web service. Can
someone point me in the right direction?
Thanks again for everyones help.
In a message dated 1/24/2011 2:29:45 P.M. Eastern Standard Time,
sk@xxxxxxxxxxxxxxxx writes:
Hi Divot,
HTTPAPI can certainly perform a GET operation on an https:// URL,
which
seems to be what you want to do.
As for MD5... it's built-in to OS/400, at the MI-level. Has been
for
ages. You can use the _CIPHER MI instruction, or the QC3CALHA API
to
perform an MD5 hash.
The following articles discuss creating MD5 hashes
http://systeminetwork.com/article/utility-calculate-md5-hash-stream
-file
http://systeminetwork.com/article/calculate-sha-1-hash
http://systeminetwork.com/article/sha1-md5-and-base64-without-apis
The whole thing seems strange to me, as you refer to this as an
"FTP
server appliance", yet you don't appear to be using FTP to
communicate
with it.... strange, strange, strange...
On 1/22/2011 4:57 PM, DivotDug@xxxxxxx wrote:
>
> I am tasked with a new project and I am not sure where to
start.
>
> I need to put/get files from something called an Accillion
managed FTP
> server appliance. Here is an exmple of the command to get a
file.
>
> The URL for the call is as follows:
> https://<hostname of appliance>/seos/<application
ID>/mpd/<MD5 hash
> token>/<file
> handle>
>
> I assume that I want to use HTTPAPI for this process. Is my
> assumption correct? Has anyone had any experience with
creating a
> MD5 hash token on the IBM i?
>
> Thanks in advance for any and all help.
-------------------------------------------------------------------
----
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
References
1. https://<hostname/
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------