2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
17
Task/HTTPS/Fortran/https.f
Normal file
17
Task/HTTPS/Fortran/https.f
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
program https_example
|
||||
implicit none
|
||||
character (len=:), allocatable :: code
|
||||
character (len=:), allocatable :: command
|
||||
logical:: waitForProcess
|
||||
|
||||
! execute Node.js code
|
||||
code = "var https = require('https'); &
|
||||
https.get('https://sourceforge.net/', function(res) {&
|
||||
console.log('statusCode: ', res.statusCode);&
|
||||
console.log('Is authorized:' + res.socket.authorized);&
|
||||
console.log(res.socket.getPeerCertificate());&
|
||||
res.on('data', function(d) {process.stdout.write(d);});});"
|
||||
|
||||
command = 'node -e "' // code // '"'
|
||||
call execute_command_line (command, wait=waitForProcess)
|
||||
end program https_example
|
||||
Loading…
Add table
Add a link
Reference in a new issue