GetViaHttp
Need to get an ordinary HTML page? The following code is doing just that by calling a couple of .NET calls:
s←GetViaHttp url;⎕USING;wrq;wr;str;rdr ⍝ Get a web resource via HTTP ⎕USING←'System,System.dll' 'System.Net' 'System.IO' 'System.Text' wrq←HttpWebRequest.Create⊂url wr←wrq.GetResponse str←wr.GetResponseStream rdr←⎕NEW StreamReader str s←rdr.ReadToEnd str.Close
CategoryDotNet - CategoryDyalogDotNet - CategoryDyalogExamplesDotNet