Jump to content

$oHttp.SetRequestHeader("User-Agent", .....)

Recommended Posts


Is it possible that my script can understand what version of "Avast browser" I use and use it somehow with instead Mozilla. I want it to do due cookies, cos website i go with script, must be logged in to show info what i need

$oHttp.SetRequestHeader("User-Agent", "Mozilla/"&$Randomnr)

This is script I use now

Local $URLSteam = $url
Local $oHttp = ObjCreate("WinHttp.WinHttpRequest.5.1")
If not @error Then
$oHttp.Open("GET", $URLSteam, False)
$oHttp.SetRequestHeader("User-Agent", "Mozilla/"&$Randomnr) ;~~~~~~ xD dont ask about that function at end :D
;ConsoleWrite("Mozilla/"& $Randomnr)
Global $sData = $oHttp.ResponseText


Link to comment
Share on other sites

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

  • Recently Browsing   0 members

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