HTTP: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Undo revision 315444 by WdeCvfYlmB (talk)) |
Thundergnat (talk | contribs) (Undo revision 315443 by WdeCvfYlmB (talk)) |
||
Line 893: | Line 893: | ||
=={{header|Go}}== |
=={{header|Go}}== |
||
<lang go> |
<lang go> |
||
package main |
|||
import ( |
import ( |
||
"io" |
"io" |
||
Line 900: | Line 901: | ||
) |
) |
||
func main() { |
func main() { |
||
resp, _ := http.Get("http://www.w3.org |
resp, _ := http.Get("http://www.w3.org") |
||
io.Copy(os.Stdout, resp.Body) |
io.Copy(os.Stdout, resp.Body) |
||
} |
|||
</lang> |
|||
=={{header|Groovy}}== |
=={{header|Groovy}}== |
||
<lang groovy> |
<lang groovy>new URL("http://www.w3.org/Home.html").eachLine { |
||
println it |
|||
</lang> |
}</lang> |
||
=={{header|GUISS}}== |
=={{header|GUISS}}== |