How make URLencode?
in
Core Library Questions
•
1 year ago
I'm using Processing.net to get data in a server:
import processing.net.*;
import processing.serial.*;
Client c;
String data;
...
But i need pass some parameters in the URL...
String vUrl=addr+ vParam;
println(vUrl); // result .../gettemp.asp?temperatura=24
&data=30/7/2012 22:53:59
c.write("GET "+ vUrl + " HTTP/1.1\r\n");
c.write("Host: "+domain+"\r\n");
...
I get 404 ERROR IN SERVER (not found)
I need encode the URL, but how can i do this in Processing?
1