mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 10:21:26 +01:00
Fix for Network library GET example
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user