Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 28
Registered: ‎05-03-2011
My Device: 9530
My Carrier: cell

Http connection problem

Hie all,

 

i got a problem in http connection..

i have made http connection in my project..and it was working fine for some blackberry..but one of my friend made some changes in settings now it is not working.... it is not connecting through Http Connection..can some give me solution..

 

my code for http is -

httpconnection con= (httpconnection)Connector.open(url);

 

now it is giving me an error on this line...

is there any another way for connection.. i heard about BIS.. but dont know how to use it...

 

thanx,

Nilesh Pawate

 

Highlighted
Developer
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Http connection problem

i think the errorm is because of your url...

Have you add connection suffix for your url to determine network connection?

Contributor
Posts: 28
Registered: ‎05-03-2011
My Device: 9530
My Carrier: cell

Re: Http connection problem

no i have not used any suffix to determine any network connection....

 

please can u help me out for this problem...how to determine and set network connections...?

 

Thanx

Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: Http connection problem

Use this:

 

 

   HttpConnection  connection = (HttpConnection)Connector.open(url);

Contributor
Posts: 28
Registered: ‎05-03-2011
My Device: 9530
My Carrier: cell

Re: Http connection problem

i have used same yar...but this is not working is real device...

 

i thnk i have to go for BIS n all

can u tell me the BIS or BES code..

 

thanx

 

Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: Http connection problem

 

can u display here which error u got?

Contributor
Posts: 28
Registered: ‎05-03-2011
My Device: 9530
My Carrier: cell

Re: Http connection problem

it stuck to that line only

 

that is  HttpConnection connection=(HttpConnection)Connector.open(Url);

 

it is not going further from this in real device...

 

Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: Http connection problem

do u check that ur url is working in browser ?

Contributor
Posts: 28
Registered: ‎05-03-2011
My Device: 9530
My Carrier: cell

Re: Http connection problem

yeah my url is working fine in browser....

Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: Http connection problem

can u show me ur code ?