on 24-04-2012 08:37 AM
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.
on 25-04-2012 11:00 PM
on 29-04-2012 06:08 PM
on 04-05-2012 03:28 PM
on 30-08-2012 03:37 AM
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 ?
on 30-08-2012 03:24 PM
Hi:
Anyone check what jamesnorman post it first? about certificates?
Cheers,
on 21-02-2013 05:34 PM
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を一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870