Jump to content

Errors with $oHTTP.ResponseText


Recommended Posts

#include <Array.au3>
; Send request 1
$CK =  "bbsessionhash=dd99eac96ebe6aa7f66ae75aa7c80549; bblastvisit=1328091751; bblastactivity=0; AVIM_on_off=1; AVIM_method=0; AVIM_ckspell=1; AVIM_daucu=1; __utma=165009023.2067741902.1328091967.1328091967.1328091967.1; __utmb=165009023.2.10.1328091967; __utmc=165009023; __utmz=165009023.1328091967.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=165009023.|1=usergroup=1-Unregistered%20%2F%20Not%20Logged%20In=1bbsessionhash=dd99eac96ebe6aa7f66ae75aa7c80549; bblastvisit=1328091751; bblastactivity=0; AVIM_on_off=1; AVIM_method=0; AVIM_ckspell=1; AVIM_daucu=1; __utma=165009023.2067741902.1328091967.1328091967.1328091967.1; __utmb=165009023.2.10.1328091967; __utmc=165009023; __utmz=165009023.1328091967.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=165009023.|1=usergroup=1-Unregistered%20%2F%20Not%20Logged%20In=1"
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "http://1kho.com" , False)
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 5.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1")
$oHTTP.SetRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
$oHTTP.SetRequestHeader("Accept-Language", "vi-vn,vi;q=0.8,en-us;q=0.5,en;q=0.3")
$oHTTP.SetRequestHeader("Accept-Encoding", "gzip, deflate")
$oHTTP.SetRequestHeader("Accept-Charset", "UTF-8,*")
$oHTTP.SetRequestHeader("Connection", "keep-alive")
$oHTTP.SetRequestHeader("Cookie",$CK)
$oHTTP.Send()
$oReceived = $oHTTP.ResponseText
MsgBox(64, "ABC", $oReceived)

I get the following error when I use $oHTTP.Responsetext. But $oHTTP.Responsebody doesn't

How can I get $oReceived text format. Thank !!! :)

C:Documents and SettingsDungyeuanhDesktopNew AutoIt v3 Script.au3 (14) : ==> The requested action with this object has failed.:
$oReceived = $oHTTP.ResponseText
$oReceived = $oHTTP.ResponseText^ ERROR
Edited by DUNGYEUANH
Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...