Announcement

Collapse
No announcement yet.

download a file without extension

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • download a file without extension

    Hello everyone !
    How to download a file without extension; If the file bears 000 as the server ID and not 000.jpg (image files)
    For example :
    Code:
     sMyDocumentsLocation = Shell.GetFolder(SHF_MYDOCUMENTS);
     connected = HTTP.TestConnection("http://www.google.com", 20, 80, nil, nil);
     url="http://www.test.test/folder/00"
     HTTP.Download(url , sMyDocumentsLocation.."\\00.jpg", MODE_BINARY, 20, 80, nil, nil, DownloadCallback);
    Thank you

  • #2
    Try to suppress the extension if you do not want one:
    Code:
    HTTP.Download(url , sMyDocumentsLocation.."\\00", MODE_BINARY, 20, 80, nil, nil, DownloadCallback);
    Ulrich

    Comment


    • #3

      Thank you but it does not work always :(

      Comment


      • #4

        Thank you infinitely has you it works with https

        Comment


        • #5

          I made the error of using HTTP.Download and not HTTP.DownloadSecure A great thank you Ulrich

          Comment

          Working...
          X