I have a problem with Nokia s40 phones (6131 NFC and 6212)

We have an application that we need to download from our server to the phone (6131,6212) and then the application which is a midlet then connects to the net and performs the action.

Now We need to configure the proxy access point settings which have been done by provisioning the wbxml file on the phone.

The issue is when we use the HTTP on port 80 everything works fine. when i use the HTTPS port 443 the java midlet seems to fail. seems that midlet cannot use the proxy setting.

What could be the issue?