Brian Culverwell
-
Content Count
8 -
Joined
-
Last visited
Posts posted by Brian Culverwell
-
-
Hi
I am trying to write code that will compose a REST request that is multi-part - containing headers, parameters (body) and a file to upload - then interrogate the response.I have tried the inbuilt .net components of Delphi - and can create the headers and parameters, but the 'addfile' fails.
Any idea's or a sample project or code snippet that does this?
RegardsBrian
-
tried that and success!
Now just to put that code into my project.
Thanks for all your help Angus.
Regards
Brian
-
Thanks again - I will try the OverbyteIcsXferTst.dpr sample and see if I can get an upload from a https server...
-
Angus - the THttpsGetFile was declared in one of the samples so I used that.
-
Thanks Angus
I am sure it is part of ICS but if not, is there another example using ICS that can download files from https?
Best regards
Brian
-
35 minutes ago, Brian Culverwell said:I have successfully implemented SSL transfer of files but my client reports that some images are not fully transferred.... they think it is some timeout?
My code is thus:
HttpsGetFile := THttpsGetFile.Create(Application);
OverbyteGetFile1.Url := arg2;
OverbyteGetFile1.TempFolder := BpcGetTempDir;
HttpsGetFile.GetRemoteFile;it looks like the GetRemoteFile is timing out and not getting the full contents of the file?
If you could help in any way that would be most appreciated.
-
I have successfully implemented SSL transfer of files but my client reports that some images are not fully transferred.... they think it is some timeout?
My code is thus:
HttpsGetFile := THttpsGetFile.Create(Application);
OverbyteGetFile1.Url := arg2;
OverbyteGetFile1.TempFolder := BpcGetTempDir;
HttpsGetFile.GetRemoteFile;it looks like the GetRemoteFile is timing out and not getting the full contents of the file?
If you could help in any way that would be most appreciated.
example of multi-part form containing headers, body (parameters) and a file to upload
in ICS - Internet Component Suite
Posted
Thanks Angus - I will take a look at that old non-SSL sample - at the moment I don't need SSL at all.