Memoize

BasicWerk   EC Support   Technique   Facebook  

20140614092835_factor_http-client_http-head_download-to

factor_http-client_http-head_download-to

 
IN: scratchpad auto-use USE: http.client
IN: scratchpad auto-use "http://basicwerk.com/" >url http-head drop .
T{ response
    { version "1.1" }
    { code 200 }
    { message "OK" }
    ...
}
 
IN: scratchpad auto-use "http://basicwerk.com/" >url http-head drop code>> .
200
 

 

 
% mkdir image
 
IN: scratchpad auto-use "http://basicwerk.com/image/bw_SS.png" >url "./image/bw_SS.png" download-to
 
% ls image
bw_SS.png
 

 


© Shin Nakamura/BasicWerk 2014