User Tools

Site Tools


fetching_20a_20secure_20web_20page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
fetching_20a_20secure_20web_20page [2018/03/31 13:19]
127.0.0.1 external edit
fetching_20a_20secure_20web_20page [2018/04/17 16:06]
tbest3112 Added syntax highlighting
Line 9: Line 9:
   * One of the directories listed in the PATH environment variable.   * One of the directories listed in the PATH environment variable.
 \\  If you want to distribute **libssl32.dll** and **libeay32.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:\\ \\  \\  If you want to distribute **libssl32.dll** and **libeay32.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:\\ \\ 
 +<code bb4w>
         port$ = "​443"​ : REM https         port$ = "​443"​ : REM https
         host$ = "​www.fortify.net"​         host$ = "​www.fortify.net"​
Line 14: Line 15:
         file$ = @tmp$ + "​sslcheck.html"​         file$ = @tmp$ + "​sslcheck.html"​
         PROCsslfetch(port$,​ host$, page$, file$)         PROCsslfetch(port$,​ host$, page$, file$)
 +</​code>​
 This fetches the page https://​www.fortify.net/​sslcheck.html to the file **sslcheck.html**.\\ \\  Here is the procedure:​\\ \\  This fetches the page https://​www.fortify.net/​sslcheck.html to the file **sslcheck.html**.\\ \\  Here is the procedure:​\\ \\ 
 +<code bb4w>
         DEF PROCsslfetch(port$,​ host$, page$, file$)         DEF PROCsslfetch(port$,​ host$, page$, file$)
         LOCAL libssl%, libeay%, meth%, ctx%, sock%, temp%, res%, ssl%, sbio%, file%         LOCAL libssl%, libeay%, meth%, ctx%, sock%, temp%, res%, ssl%, sbio%, file%
Line 97: Line 100:
         PROC_exitsockets         PROC_exitsockets
         ENDPROC         ENDPROC
 +</​code>​
fetching_20a_20secure_20web_20page.txt ยท Last modified: 2018/07/30 22:42 by richardrussell