Error

Notice: Undefined property: stdClass::$forum_tid in forum_node_view() (line 275 of /home/wfrantz/www/sprintdevelopers/modules/forum/forum.module).

HttpConnection URL restrictions?

Submitted by Anonymous (not verified) on Wed, 06/15/2005 - 11:37

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?