diff --git a/app/src/processing/mode/java/JavaBuild.java b/app/src/processing/mode/java/JavaBuild.java index 5f40759fd..c48e493f6 100644 --- a/app/src/processing/mode/java/JavaBuild.java +++ b/app/src/processing/mode/java/JavaBuild.java @@ -1519,8 +1519,12 @@ public class JavaBuild { int offset = sketch.getFolder().getAbsolutePath().length() + 1; for (String path : dataFiles) { if (Base.isWindows()) { + System.out.println("base is windows"); //dataFiles[i] = dataFiles[i].replace('\\', '/'); path = path.replace('\\', '/'); + System.out.println("new path is " + path); + } else { + System.out.println("base NOT windows"); } //File dataFile = new File(dataFiles[i]); File dataFile = new File(path); diff --git a/java/libraries/net/examples/HTTPClient/HTTPClient.pde b/java/libraries/net/examples/HTTPClient/HTTPClient.pde index 6bbdd6742..01dd5a859 100644 --- a/java/libraries/net/examples/HTTPClient/HTTPClient.pde +++ b/java/libraries/net/examples/HTTPClient/HTTPClient.pde @@ -2,7 +2,13 @@ * HTTP Client. * * Starts a network client that connects to a server on port 80, - * sends an HTTP 1.1 GET request, and prints the results. + * sends an HTTP 1.0 GET request, and prints the results. + * + * Note that this code is not necessary for simple HTTP GET request: + * Simply calling loadStrings("http://www.processing.org") would do + * the same thing as (and more efficiently than) this example. + * This example is for people who might want to do something more + * complicated later. */ @@ -16,8 +22,8 @@ void setup() { background(50); fill(200); c = new Client(this, "www.processing.org", 80); // Connect to server on port 80 - c.write("GET / HTTP/1.1\n"); // Use the HTTP "GET" command to ask for a Web page - c.write("Host: my_domain_name.com\n\n"); // Be polite and say who we are + c.write("GET / HTTP/1.0\r\n"); // Use the HTTP "GET" command to ask for a Web page + c.write("\r\n"); } void draw() { diff --git a/todo.txt b/todo.txt index 4f18b4e1a..b4a1cae6d 100644 --- a/todo.txt +++ b/todo.txt @@ -9,6 +9,14 @@ X library imports are broken (using pretty name not folder name) X http://code.google.com/p/processing/issues/detail?id=637 X 1.5 can't find java sdk -- patch shell script? X http://code.google.com/p/processing/issues/detail?id=633 +X Obsolete Network > HTTPClient sketch +X http://code.google.com/p/processing/issues/detail?id=655 + +_ Applets exported by PDE don't find data folder in 1.5 (philho) +_ http://code.google.com/p/processing/issues/detail?id=666 + +_ add deployJava.js to local sketch folder (causes internet requirement) +_ http://code.google.com/p/processing/issues/detail?id=650 _ libraries in java tabs (separate .java files) are reported missing _ need to scan the .java files for imports that need to be included