Skip to content

Commit 79a4a71

Browse files
Servidor versão HTTP 0.9
1 parent 6c97bd4 commit 79a4a71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/br/ufs/dcomp/ExemploHTTP/HTTPClient1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ public class HTTPClient1
1515
{
1616
public static void main( String[] args ) throws Exception
1717
{
18-
Socket sock = new Socket("www.ic.unicamp.br", 80);
18+
Socket sock = new Socket("www.tobymackenzie.com", 80);
1919

2020
InputStream in = sock.getInputStream();
2121
OutputStream out = sock.getOutputStream();
2222

2323
String CRLF = "\r\n";
2424

2525
String msg = "GET / HTTP/1.1" + CRLF +
26-
"Host: www.ufs.br" + CRLF +
26+
"Host: www.tobymackenzie.com" + CRLF +
2727
CRLF;
2828

2929
// Envio da requisição HTTP

0 commit comments

Comments
 (0)