| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1519,8 +1519,12 @@ protected void addDataFolder(ZipOutputStream zos) throws IOException { | |||
| 1519 | 1519 | int offset = sketch.getFolder().getAbsolutePath().length() + 1; | |
| 1520 | 1520 | for (String path : dataFiles) { | |
| 1521 | 1521 | if (Base.isWindows()) { | |
| 1522 | + System.out.println("base is windows"); | ||
| 1522 | 1523 | //dataFiles[i] = dataFiles[i].replace('\\', '/'); | |
| 1523 | 1524 | path = path.replace('\\', '/'); | |
| 1525 | + System.out.println("new path is " + path); | ||
| 1526 | + } else { | ||
| 1527 | + System.out.println("base NOT windows"); | ||
| 1524 | 1528 | } | |
| 1525 | 1529 | //File dataFile = new File(dataFiles[i]); | |
| 1526 | 1530 | File dataFile = new File(path); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,13 @@ | |||
| 2 | 2 | * HTTP Client. | |
| 3 | 3 | * | |
| 4 | 4 | * Starts a network client that connects to a server on port 80, | |
| 5 | - * sends an HTTP 1.1 GET request, and prints the results. | ||
| 5 | + * sends an HTTP 1.0 GET request, and prints the results. | ||
| 6 | + * | ||
| 7 | + * Note that this code is not necessary for simple HTTP GET request: | ||
| 8 | + * Simply calling loadStrings("http://www.processing.org") would do | ||
| 9 | + * the same thing as (and more efficiently than) this example. | ||
| 10 | + * This example is for people who might want to do something more | ||
| 11 | + * complicated later. | ||
| 6 | 12 | */ | |
| 7 | 13 | ||
| 8 | 14 | ||
@@ -16,8 +22,8 @@ void setup() { | |||
| 16 | 22 | background(50); | |
| 17 | 23 | fill(200); | |
| 18 | 24 | c = new Client(this, "www.processing.org", 80); // Connect to server on port 80 | |
| 19 | - c.write("GET / HTTP/1.1\n"); // Use the HTTP "GET" command to ask for a Web page | ||
| 20 | - c.write("Host: my_domain_name.com\n\n"); // Be polite and say who we are | ||
| 25 | + c.write("GET / HTTP/1.0\r\n"); // Use the HTTP "GET" command to ask for a Web page | ||
| 26 | + c.write("\r\n"); | ||
| 21 | 27 | } | |
| 22 | 28 | ||
| 23 | 29 | void draw() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,14 @@ X library imports are broken (using pretty name not folder name) | |||
| 9 | 9 | X http://code.google.com/p/processing/issues/detail?id=637 | |
| 10 | 10 | X 1.5 can't find java sdk -- patch shell script? | |
| 11 | 11 | X http://code.google.com/p/processing/issues/detail?id=633 | |
| 12 | + X Obsolete Network > HTTPClient sketch | ||
| 13 | + X http://code.google.com/p/processing/issues/detail?id=655 | ||
| 14 | + | ||
| 15 | + _ Applets exported by PDE don't find data folder in 1.5 (philho) | ||
| 16 | + _ http://code.google.com/p/processing/issues/detail?id=666 | ||
| 17 | + | ||
| 18 | + _ add deployJava.js to local sketch folder (causes internet requirement) | ||
| 19 | + _ http://code.google.com/p/processing/issues/detail?id=650 | ||
| 12 | 20 | ||
| 13 | 21 | _ libraries in java tabs (separate .java files) are reported missing | |
| 14 | 22 | _ need to scan the .java files for imports that need to be included | |
| Back | FazBrowse Home | New Git URL |
0 commit comments