Hi Argus,
I have created a procedure to send two csv files to an HTTP server and I get a response that the files have been sent. But those files do not physically appear on the server.
That code is:
Send_CSV(File1.csv, File2.csv)
PROCEDURE Send_CSV( sFileToSend1, sFileToSend2)
sHTTPLink is string
sHTTPLink = "[
www.test.com];
HTTPCreateForm("FORM")
HTTPAddFile("FORM", "file1", sFileToSend1)
HTTPAddFile("FORM", "file2", sFileToSend2)
IF NOT HTTPSendForm("FORM", sHTTPLink,
httpPost,"","",typeMimeMultiPartForm,NoSpace(gsHTTP_Link_User),NoSpace(gsHTTP_Link_Password)) THEN
Error("Error sending files; ", ErrorInfo())
ELSE
InfoWithTimeout(500, "Successfully sending files!")
END
I would like to ask you, if I don't take a lot of your time, to show me an example of sending in the code.
1. files are example_file1.csv and example_file2.csv
2. The HTTP link is [
test.com]
So, the files under serial number 1 should be sent to the link under serial number 2 and receive an answer that it has arrived at the destination or a report why it has not, if not.
I hope this is not a problem for you and I thank you in advance.
Best regards,
Sead
Edited 6 time(s). Last edit at 08/19/2023 07:39AM by Sead Grbesic.