BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-05-2009, 05:21 AM   #1
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Default problem with https connection

Please Login to Remove!

hi guys ....................i m having some problem with https or http connection in my blackberry application....

i m trying to open connection like....

HttpsConnectionconn = null;
String url="https://test.abhi.net/gateway/transaction.dll";
conn = (HttpsConnection)Connector.open(url);
System.out.println("connection opened");

DataOutputStream out = new DataOutputStream(conn.openOutputStream());
StringBuffer sb = new StringBuffer();


sb.append("data for send to url");
out.write(sb.toString().getBytes());
out.flush();
out.close();

but it is not opening the connection and showing "connection does not exist" message on console .....and even my message system.o.p("connection opened ") also not printing ...................

even same code i tried with http connection class also........problem remains same.
any suggestions..?
Offline  
Old 04-05-2009, 10:21 AM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

Ok, first go and read this thread, please.

Then read the API documentation on HTTPConnection and HTTPSConnection.

If you want to send data to an HTTP(S) connection you use the POST protocol. There is an example in the API documentation for HTTPConnection.
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Single To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD picture

Single To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD

$169.90



VEVOR 7.5KW 10HP Variable Frequency Drive Inverter Convert 1 To 3 Phase VFD 220V picture

VEVOR 7.5KW 10HP Variable Frequency Drive Inverter Convert 1 To 3 Phase VFD 220V

$163.99



VEVOR 3HP 2.2KW 10A Variable Frequency Drive VFD for 3-Phase Motor Speed Control picture

VEVOR 3HP 2.2KW 10A Variable Frequency Drive VFD for 3-Phase Motor Speed Control

$79.99



VEVOR 4KW 220V 5HP Variable Frequency Drive Converter VFD Inverter 1 To 3 Phase picture

VEVOR 4KW 220V 5HP Variable Frequency Drive Converter VFD Inverter 1 To 3 Phase

$124.99



1 To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD New picture

1 To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD New

$166.70



VFD Variable Frequency Drive 1 or 3 Phase input 0-400HZ 5.5kW 7.5HP 220V 25A picture

VFD Variable Frequency Drive 1 or 3 Phase input 0-400HZ 5.5kW 7.5HP 220V 25A

$175.00







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