找回密码
 加入
搜索
查看: 2030|回复: 5

[网络通信] 【已解决】怒了!POST一个SSL网站,居然不返回任何数据

  [复制链接]
发表于 2016-9-12 22:58:37 | 显示全部楼层 |阅读模式
本帖最后由 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 )
发表于 2016-9-13 08:14:51 | 显示全部楼层
$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)
 楼主| 发表于 2016-9-13 12:01:01 | 显示全部楼层
回复 2# haijie1223


    还是超版厉害,能给解释下或推荐点资料吗?
发表于 2016-9-13 21:21:21 | 显示全部楼层
 楼主| 发表于 2016-9-14 14:49:14 | 显示全部楼层
回复 4# ila


    好吧,看来是逃不脱这堆英文了,呵呵!
发表于 2016-9-18 16:12:13 | 显示全部楼层
08的注册,比我后二年的都当版主了。牛B
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-11 13:49 , Processed in 0.073515 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表