BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-01-2010, 09:19 AM   #1 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9700
PIN: N/A
Carrier: Qwerty
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Http Connection Timed Out

Please Login to Remove!

Hi

I have a problem with the BlackBerry 9700 when i use an Http Connection but the strange is on the 8900 work fine.

Here the code :

Code:
http = (HttpConnection) Connector.open(url);
http.setRequestMethod(HttpConnection.POST); 
http.setRequestProperty("CONTENT-TYPE", "application/x-www-form-urlencoded");
			
outStrm = new DataOutputStream(http.openOutputStream());
			
byte data[] = ("data1=" + data1).getBytes();
outStrm.write(data);

...			

outStrm.close();
			
inStrm = http.openInputStream();      
byte servletData[] = new byte[150];
inStrm.read(servletData);
inStrm.close();
Any ideas?

Thanks
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HP/Agilent 70004A Mainframe with Color System Display + 85700A 32KB Card Memory
$199.0
HP/Agilent 70004A Mainframe with Color System Display + 85700A 32KB Card Memory pictureTEKTRONIX 7603 Oscilloscope Mainframe No Inputs; S/N 106610
$175.0
TEKTRONIX 7603 Oscilloscope Mainframe No Inputs; S/N 106610 pictureHP 44729A 8 Channel Power Controller For HP 3852A Data Acquisition Main Frame
$40.0
HP 44729A 8 Channel Power Controller For HP 3852A Data Acquisition Main Frame  pictureJDSU T-BERD 8000 Mainframe E8126VSRe OTDR
$2950.0
JDSU T-BERD 8000 Mainframe E8126VSRe OTDR  pictureRohde & Schwarz (R&S) MSCU Mainframe with Filter Modules F127 F13 F17 F225 F56
$195.0
Rohde & Schwarz (R&S) MSCU Mainframe with Filter Modules F127 F13 F17 F225 F56 picture






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