fetching_20a_20secure_20web_20page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| fetching_20a_20secure_20web_20page [2025/03/21 18:48] – Changed DLL versions richardrussell | fetching_20a_20secure_20web_20page [2025/03/23 15:13] (current) – richardrussell | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Fetching a secure web page===== | =====Fetching a secure web page===== | ||
| - | //by Richard Russell, July 2009, updated July 2018//\\ \\ The procedure listed below fetches the contents of a secure (**https: | + | //by Richard Russell, July 2009, updated July 2018 and March 2025// |
| - | If you want to distribute **libssl-1_1.dll** and **libcrypto-1_1.dll** with your application then store them in **@dir$** and embed them in the executable. Alternatively you can put them in **@lib$** (or a sub-directory) but in that case you will need to amend the procedure below to load them explicitly from that location. | + | The procedure listed below fetches the contents of a web resource to a specified file; it uses the code listed in the //BBC BASIC for Windows// [[https:// |
| + | |||
| + | <code bb4w> | ||
| + | url$ = " | ||
| + | file$ = @tmp$ + " | ||
| + | SYS " | ||
| + | SYS " | ||
| + | SYS `URLDownloadToFile`, | ||
| + | IF fail% ERROR 100, "File download failed" | ||
| + | OSCLI "RUN notepad """ | ||
| + | </ | ||
| + | |||
| + | If you find this code doesn' | ||
| + | | ||
| + | |||
| + | If you want to distribute **libssl-3.dll** and **libcrypto-3.dll** with your application then store them in **@dir$** and embed them in the executable. Alternatively you can put them in **@lib$** (or a sub-directory) but in that case you will need to amend the procedure below to load them explicitly from that location. | ||
| The procedure should be called in the following context: | The procedure should be called in the following context: | ||
fetching_20a_20secure_20web_20page.1742582909.txt.gz · Last modified: 2025/03/21 18:48 by richardrussell