【已解决】怒了!POST一个SSL网站,居然不返回任何数据
本帖最后由 cihron 于 2016-9-18 23:49 编辑如题,直接上代码:$oHttp = ObjCreate("winhttp.winhttprequest.5.1")
$oHttp.open( "GET", "https://124.160.11.200:8443/cas" )
$oHttp.send()
$responseHeader ="HTTP/1.1 " & $oHttp.status & " " & $oHttp.statusText & @CRLF &$oHttp.getAllResponseHeaders()
$responseBoy = BinaryToString($oHttp.ResponseBody)
MsgBox( 0, "Test", $responseHeader & @CRLF & @CRLF & $responseBoy ) $oHttp = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Option(4) = 13056
$oHttp.open("GET", "https://124.160.11.200:8443/cas",False)
$oHttp.send()
$responseHeader = "HTTP/1.1 " & $oHttp.status & " " & $oHttp.statusText & @CRLF & $oHttp.getAllResponseHeaders()
$responseBoy = BinaryToString($oHttp.ResponseBody,4)
MsgBox(0, "Test", $responseHeader & @CRLF & @CRLF & $responseBoy) 回复 2# haijie1223
还是超版厉害,能给解释下或推荐点资料吗?{:face (427):} https://msdn.microsoft.com/en-us/library/gg675180(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/gg675179(v=vs.85).aspx 回复 4# ila
好吧,看来是逃不脱这堆英文了,呵呵!{:face (411):} 08的注册,比我后二年的都当版主了。牛B
页:
[1]