HTTP: Difference between revisions

3 bytes removed ,  3 years ago
m
Updated URL.
m (Updated URL.)
m (Updated URL.)
Line 1,375:
{{trans|Java}}
An implementation of the [[#Java|Java]] version shown above; demonstrating NetRexx's ability to exploit the rich Java SDK.
<lang NetRexx>options replace format comments java crossref symbols binary
 
<lang NetRexx>/* NetRexx */
options replace format comments java crossref symbols binary
 
import java.util.Scanner
import java.net.URL
 
do
rosettaUrl = "http://www.rosettacodew3.org/Home.html"
sc = Scanner(URL(rosettaUrl).openStream)
loop while sc.hasNext
say sc.nextLine
end
catch ex = Exception
ex.printStackTrace
end
 
return</lang>