06-26-2009, 10:45 AM
Join Date: Sep 2008
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | java.io.IOException:Tunnel Failed in a url calling
Please Login to Remove!
I have written a code that using HTTPConnection to call a url:
HttpConnection conn = (HttpConnection) Connector.open(url);
int respCode = conn.getResponseCode();
it's ok in my Pearl and send the url correct, but on my friend's Bold, i caught this exception:
I also test calling that by using
StreamConnection c = null;
InputStream s = null;
c = (StreamConnection) Connector.open(url);
s = c.openInputStream();
ContentConnection c = null;
DataInputStream dis = null;
c = (ContentConnection) Connector.open(url);
int len = (int) c.getLength();
dis = c.openDataInputStream();
but the same.
Also i can call the url by bb's browser and it's ok.
I tested the application by WIFI and Edge.
This is really weird :(
Thanks in advance
Majid Asgari Bidhendi
Student of Artificial Intelligence