What is the equivalent for Windows Urlmon.dll in Linux Ubuntu? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Robert W.B. · 2012-10-30 00:06 I call this function in Windows to download an url: function URLDownloadToFile(pCaller: pointer; URL: PChar; FileName: PChar; Reserved: DWORD; lpfnCB : pointer): HResult; stdcall; external 'urlmon.dll' name 'URLDownloadToFileA'; What is the equivalent for Windows Urlmon.dll in Linux Ubuntu? grateful for help. ---------------------------------------------------------------------- IPguy · 2012-10-30 00:33 This will get the contents of a URL and put it into a tStringList:      HttpGetText(url,RemoteFileContents);       httpGetText is from the Synapse component.      There is also a httpGetBinary function available. Is that what you were looking for? ---------------------------------------------------------------------- Robert W.B. · 2013-02-02 00:12 No.I know Synapse but,it can't handle HTTPS very easy. I want to know ,like the Urlmon.dll is a native Windows library,what is the native Linux library. Is it curl? if so, can I use this code and switch Urlmon.dll to curl instead? function URLDownloadToFile(pCaller: pointer; URL: PChar; FileName: PChar; Reserved: DWORD; lpfnCB : pointer): HResult; stdcall; external 'urlmon.dll' name 'URLDownloadToFileA';                                                         curl.? Regards ---------------------------------------------------------------------- Leledumbo · 2013-02-02 06:40 Quotewhat is the native Linux library. Is it curl?No, Linux doesn't have such a native library (just like its GUI). Try lNet, AFAIK it has full https support. Maybe you could try fphttpclient as well, though I don't know its state for https. ---------------------------------------------------------------------- BigChimp · 2013-02-02 07:52 Quote from: robbanux on February 02, 2013, 01:12:55 amNo.I know Synapse but,it can't handle HTTPS very easy. http://wiki.lazarus.freepascal.org/synapse#Linux ---------------------------------------------------------------------- BeniBela · 2013-02-02 09:44 Quote from: robbanux on February 02, 2013, 01:12:55 amNo.I know Synapse but,it can't handle HTTPS very easy My Internet Tools have a wrapper around synapse that takes care of the https dependencies ---------------------------------------------------------------------- theo · 2013-02-02 12:10 Quote from: robbanux on February 02, 2013, 01:12:55 amNo.I know Synapse but,it can't handle HTTPS very easy. Why not? http://synapse.ararat.cz/doku.php/public:howto:sslplugin