Bill, My ipad runs ios6 and wifi only. Below is the output from my attempt to run your script. It seems to have worked.
load'~user/temp.ijs' HTTP/1.1 200 OK Date: Tue, 24 Sep 2013 12:44:46 GMT Server: Apache/2.2.22 (Ubuntu) Last-Modified: Mon, 08 Dec 2008 02:52:08 GMT ETag: "85852e-65-45d801cd8a600" Accept-Ranges: bytes Content-Length: 101 Vary: Accept-Encoding Connection: close Content-Type: text/plain Congratulations! This is the contents of the file: http://www.jsoftware.com/download/testsock.txt --- (B=) On Sep 24, 2013, at 1:20 PM, bill lam <[email protected]> wrote: > I ran the following script it retrieved a file from jsoftware > website, please test if it can also work. > > NB. ============= > cocurrent 'base' > load 'socket' > coinsert 'jsocket' > > wget=: 3 : 0 > sk=. 1{:: sdsocket'' > sdconnect sk;PF_INET;'23.21.67.48';80 > head sdsend sk;0 > z=. sdrecv sk,1000 > smoutput 1{::z > ) > > head=: 0 : 0 > GET /download/testsock.txt HTTP/1.0 > > ) > > wget'' > NB. ============= >> >> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
