Are there restrictions on the URL passed to (HttpConnection) Connector.open()? I am trying to access a cgi that accepts only GET requests, but the URL gets pretty long:
HttpConnection c = null
String mUrl = "http://www.domain.com/cgi-bin/mycgi.cgi?data=msm11188593401784&bounds=%2..."
try{
c = (HttpConnection)Connector.open(mUrl);
}catch(Exception e){
System.out.println(e.toString());
}
I get "StringIndexOutOfBoundsException: String index out of range: -27"
If I change the mUrl to something short and simple like "http://www.domain.com/cgi-bin/mycgi.cgi" it works fine, butthen my CGI isn't gettin git variables, and fails.
Anybody have similar issues or ideas on how to fix this?