Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
https://ssl. Connect error
#1
Function Function2
Code:
Copy      Help
,Http Host.Connect("ssl.tdisk.co.kr" 0 0 443)
,,Host.PostAdd("old_cookie_id" "")
,,Host.PostAdd("mb_id" "ID")
,,Host.PostAdd("site" "")
,,Host.PostAdd("mb_pw" "PASS")

,;loging check
,str r8
,if(!TDiskHost.PostFormData("/login_step.php" 0 r8)) end "failed"
out r8

Output Message:

<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
<blockquote>Hint: <a href="https://ssl.tdisk.co.kr/"><b>https://ssl.tdisk.co.kr/</b></a></blockquote></p>
</body></html>


Is not a connection.
What is the problem?
#2
Add flag INTERNET_FLAG_SECURE.
Macro Macro2554
Code:
Copy      Help
if(!Host.PostFormData("/login_step.php" 0 r8 "" 0 0 INTERNET_FLAG_SECURE)) end "failed"


Forum Jump:


Users browsing this thread: 1 Guest(s)