Jump to content

Brian Culverwell

Members
  • Content Count

    8
  • Joined

  • Last visited

Posts posted by Brian Culverwell


  1. On 4/2/2022 at 7:24 PM, Angus Robertson said:

    Currently, the ICS REST component sample does not include file uploading, only building, sending and parsing parameters. 

     

    There is an old non-SSL sample \WebDemos\ OverbyteIcsHttpPost.dpr that illustrates four different methods for uploading a file using POST, including multi part MIME, which may be tested against the ICS web server samples to receive files. 

     

    It really needs combing with the OverbyteIcsHttpRestTst.dpr sample for modern use.

     

    Angus

     

    Thanks Angus - I will take a look at that old non-SSL sample - at the moment I don't need SSL at all.

     


  2. 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?

    Regards

    Brian 


  3. 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.

    image.thumb.png.3eb373aa35acb85d7de2ea634a5aeb44.png


  4. 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.

×