本帖最后由 user11 于 2014-5-30 15:35 编辑
_INetGetSource()本来很简单的代码就可以解决的事情,可是发现竟然取不到源码,只好改用xmlhttp这个是什么原因呢,应该道理是一样的啊!!
也试过inetread也是应用取不到源码。。。
#include <INet.au3>
#include <WinHttp_GetRespond.au3>
$file_url = "http://91sp.vido.ws/getfile.php?VID=75147&mp4=0&seccode=8821aaf23cd21907a48e290d448e916d&max_vid=75259"
$video_url = _INetGetSource($file_url)
;;;;;;;;;;$video_url = InetRead($file_url, 1)
$video_s = StringInStr($video_url, "domain", 0)
If $video_s > 1 Then
$video_url = StringMid($video_url, 6, $video_s - 7)
MsgBox(0, $video_s, $video_url)
Else
MsgBox(0, $video_s, "not found")
EndIf
$xmlhttp = ObjCreate("Microsoft.XMLHTTP")
$xmlhttp.open("GET", $file_url, False)
$xmlhttp.send()
Sleep(2000)
If $xmlhttp.readyState = 4 And $xmlhttp.status = 200 Then
$video_url = $xmlhttp.Responsetext
$video_s = StringInStr($video_url, "domain", 0)
$video_url = StringMid($video_url, 6, $video_s - 7)
MsgBox(0, 0, $video_url)
EndIf
|