BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 06-26-2009, 09:45 AM   #1 (permalink)
New Member
majid.asgari's Avatar
Join Date: Sep 2008
Location: Tehran
Model: 8100
OS: Lin/WinXP
Carrier: Rogers
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Failed in a url calling

Please Login to Remove!


I have written a code that using HTTPConnection to call a url:

HttpConnection conn = (HttpConnection);
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: Failed

I also test calling that by using

StreamConnection c = null;
InputStream s = null;
try {
c = (StreamConnection);
s = c.openInputStream();


ContentConnection c = null;
DataInputStream dis = null;
try {
c = (ContentConnection);
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
BlackBerry developer
Student of Artificial Intelligence

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.