Fix for Network library GET example

This commit is contained in:
REAS
2015-10-02 15:07:01 -07:00
parent 162efd4d66
commit 2e115161f4

View File

@@ -21,7 +21,7 @@ void setup() {
size(200, 200);
background(50);
fill(200);
c = new Client(this, "www.processing.org", 80); // Connect to server on port 80
c = new Client(this, "www.ucla.edu", 80); // Connect to server on port 80
c.write("GET / HTTP/1.0\r\n"); // Use the HTTP "GET" command to ask for a Web page
c.write("\r\n");
}
@@ -31,5 +31,4 @@ void draw() {
data = c.readString(); // ...then grab it and print it
println(data);
}
}
}