General

Reply
Accepted Solution

HTTPS Connection unsuccessful

webclient throws exception ConnectionFailure.. it's fail too when using HttpWebRequest.. even if i add certificates .. :smileysad: 

Please use plain text.

Re: HTTPS Connection unsuccessful

nvm .. i just got the workaround .. using SslClientStream.. :smileyhappy:

Please use plain text.

Re: HTTPS Connection unsuccessful

hi

 

Could you post a sample code snippet here ? I got issues about POST data via HTTPS. 

 

thanks.

Please use plain text.

Level 2

Level 2
liortal
Posts: 31
Registered: ‎01-12-2011
Message 4 of 6 (307 Views)

Re: HTTPS Connection unsuccessful

I am also under the impression that https does not work.

Here's a code snippet:

// URL
string uri = @"https://www.scoreoid.com/api/createScore";

// Create a request
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);

request.KeepAlive = false;
request.ProtocolVersion = HttpVersion.Version10;
request.Method = "POST";

// Turn our request string into a byte streams
byte[] postBytes = Encoding.ASCII.GetBytes(post_data);

// This is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// Now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

Turning this to 'http' works fine.
Please use plain text.

Re: HTTPS Connection unsuccessful

yup it is... but for https-only sites that's not gonna work right ? *sigh*

Please use plain text.

Level 2

Level 2
liortal
Posts: 31
Registered: ‎01-12-2011
Message 6 of 6 (286 Views)

Re: HTTPS Connection unsuccessful

Yes, this is a critical bug if https doesn't work.
Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News