General

Reply

Does PSV develop suite not support https (SSL) and POST method?

 

 

Here is how I tried to make HTTP POST request

 

 

var webRequest = WebRequest.Create(url); //  https://example.com/login
webRequest.Method = "POST";
string postData = "client_id=testid&client_secret=testsecret";
byte[] byteArray = Encoding.UTF8.GetBytes (postData); //
// Get the request stream. //
Stream dataStream = webRequest.GetRequestStream (); //
// Write the data to the request stream. //
dataStream.Write (byteArray, 0, byteArray.Length); //
// Close the Stream object. //
dataStream.Close ();

webRequest.ContentType="application/x-www-form-urlencoded";
webRequest.Credentials = CredentialCache.DefaultCredentials;
webRequest.ContentLength = byteArray.Length;
...

 it always throws exception of "timeout " when call this line:

Stream dataStream = webRequest.GetRequestStream (); //

 Could anyone help me ? thanks.

Please use plain text.

Re: Does PSV develop suite not support https (SSL) and POST method?

If I recall correctly, it is possible that to make a WebRequest over an SSL connection, you will have to provide the clients certificate to the authenticating server. I do not have the reference page at this moment in time, but when I find them, I will post some info for you here.
PlayStation®Mobile Dev Team
Please use plain text.

Level 2

Level 2
liortal
Posts: 31
Registered: ‎01-12-2011
Message 3 of 7 (410 Views)

Re: Does PSV develop suite not support https (SSL) and POST method?

Any news on this?
Please use plain text.

Re: Does PSV develop suite not support https (SSL) and POST method?

No sorry, we are investigating the possible solutions.
PlayStation®Mobile Dev Team
Please use plain text.

Re: Does PSV develop suite not support https (SSL) and POST method?

confirmed consistent exception during async post to HTTPS, vs. no problem to the same URL with the same data by HTTP.

 

System.Net.WebException: Error: ConnectFailure
  at System.Net.HttpWebRequest.EndGetRequestStream

 

any progress on a fix, or has anyone worked around it ?

 

I did read somewhere to set ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 for this error.. not sure if that's easy to override somewhere, or has it already been tried by someone and fails anyway ?

Please use plain text.

Re: Does PSV develop suite not support https (SSL) and POST method?

Hi:

 

Anyone check what jamesnorman post it first? about certificates?

 

Cheers,

Please use plain text.

Re: Does PSV develop suite not support https (SSL) and POST method?

Is there any update on this? Has anyone used the 'Post Method' successfully?
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