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

From: Claus Hoefele <claus.hoefele_at_gmail.com>
Date: 01/16/06
Message-ID: <9f8ab7ef0601152019j741f5682r3a53339afa224d04@mail.gmail.com>
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/
Received on Mon Jan 16 06:19:43 2006