BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-02-2007, 10:35 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2007
Location: India
Model: 7100v
Carrier: aittel
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post help to use http protocol

Please Login to Remove!

I want to send data from device to server(tomcat) using http post method
I found the following Device side code

Code:
connection = (HttpConnection)Connector.open( "http://ip:port/---")
connection.setRequestMethod(HttpConnection.POST);
OutputStream stream=connection.openOutputStream();
 stream.write(data.getBytes()); 
connection.close();
but Iam confused how to get this data on server side?
Is there any way to get this data on server side?
Offline  
Old 07-02-2007, 11:05 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ServletRequest.getInputStream() should encapsulate whatever information a httpRequest is sending.
Offline  
Old 07-03-2007, 02:03 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2007
Location: India
Model: 7100v
Carrier: aittel
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks bemshawing,
This is what iam exactly looking for,
iam able to receive the data properly.
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

8Pcs 15mm X 14mm X 7mm Aluminum Heatsink RAM GPU Cooling Fin
$12.71
8Pcs 15mm X 14mm X 7mm Aluminum Heatsink RAM GPU Cooling Fin pictureAC A/C Compressor Clutch Assembly For Dodge Ram Diesel L6 5.9L 6.7L 2006-2009
$60.39
AC A/C Compressor Clutch Assembly For Dodge Ram Diesel L6 5.9L 6.7L 2006-2009 pictureHydraulic Jack , Ram , Pump
$140.0
Hydraulic Jack , Ram , Pump  picture8pcs - Mitsubishi M5K 4116P - 3 16Kx1 D RAM Integrated Circuit (IC) - Genuine
$8.33
8pcs - Mitsubishi M5K 4116P - 3  16Kx1 D RAM Integrated Circuit (IC) - Genuine picturePar Technology M5500 POS Cyrix MediaGX With MMX-S 233MHz 128MB RAM 5GB HDD
$159.99
Par Technology M5500 POS Cyrix MediaGX With MMX-S 233MHz 128MB RAM 5GB HDD picture






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