(keitai-l) Re: Iappli + ASP.Net (C#) on SSL : Httpconnection exception

From: Rajat Kaushal <rajat.kaushal_at_iap-online.net>
Date: 01/16/06
Message-ID: <MHEGIHBNJBCNFMLCKAEMGENACAAA.rajat.kaushal@iap-online.net>
Yes, I have downloaded the i-appli from HTTPS address.

Thanks & Regards,
Rajat Kaushal.

-----Original Message-----
From: keitai-l-bounce@appelsiini.net
[mailto:keitai-l-bounce@appelsiini.net]On Behalf Of Claus Hoefele
Sent: Monday, January 16, 2006 1:20 PM
To: keitai-l@appelsiini.net
Subject: (keitai-l) Re: Iappli + ASP.Net (C#) on SSL : Httpconnection
exception


Did you download the i-appli from the HTTPS address? i-applis are only
allowed to connect to Web servers they were downloaded from. This
security procedure distinguishes between HTTP and HTTPS.

CU,
Claus

On 1/14/06, Rajat Kaushal <rajat.kaushal@iap-online.net> wrote:
> Hello friends,
>
> I am making an httpconnection with the following code.
>
> When I run this code with the HTTP address it runs fine. But when I run
the
> same code with HTTPS address in jam file it gives an httpConnection
> Exception, at the line httpCon.connect();
>
> I have taken a "VariSign Server Test CA"  trial certificate for SSL in
IIS.
> The page opens fine on the browser window. Even when I put a breakpoint at
> the Response.Write line in C# the control comes there. Is there any
> particular settings which are required to be done on IIS.
>
>
> Kindly help me solving this problem.
>
>
>
>                         Doja Code
> --------------------------------------------------------------------------
--
> -------------------------------------------------------
>         String strURL =IApplication.getCurrentApp().getSourceURL() +
> "Test.aspx";
>         try {
>           if(httpCon != null)
>                 CloseConnection();
>             httpCon =(HttpConnection) Connector.open(strURL,
>             Connector.READ_WRITE, true);
>             httpCon.setRequestMethod(HttpConnection.POST);
>             httpCon.setRequestProperty("Content-Type", "text/plain");
>             httpCon.connect();
>             if (httpCon.getResponseCode() == HttpConnection.HTTP_OK) {
>         ..............
>         ..............
> --------------------------------------------------------------------------
--
> -------------------------------------------------------
>                         C# Code
> --------------------------------------------------------------------------
--
> -------------------------------------------------------
>                 private void Page_Load(object sender, System.EventArgs e)
>                 {
>                         Response.Write("hello world");
>                 }
>
> --------------------------------------------------------------------------
--
> -------------------------------------------------------
>
>
>
> Thanks & Regards,
> Rajat Kaushal.
>
>
>
> This mail was sent to address claus.hoefele@gmail.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
>
>


--
3D graphics for Java mobile devices
Part 1: M3G's immediate mode
http://www.ibm.com/developerworks/wireless/library/wi-mobile1/
Part 2: M3G's retained mode
http://www.ibm.com/developerworks/wireless/library/wi-mobile2/

This mail was sent to address rajat.kaushal@iap-online.net
Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
Received on Mon Jan 16 06:34:06 2006