Jump to content

Recommended Posts

Posted

Hi there,

I'm trying to send a simple get request by ObjCreate("winhttp.winhttprequest.5.1")

But it can only work on some computer, and it can't send request on other computer.

I guess the problem is some computer have the different version of winhttp request (not 5.1, higher or lower)

Can I send a get request without using winhttp?

Thanks for your help!

Posted

@JLogan3o13: This is my code:

Func SendLog($Program,$Action)
    $oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
    $oHTTP.Open("Post", "https://docs.google.com/forms/d/1CS8PWFomyKympdI_RYLgjDdS35GwJXJAdpKnmdfxxxx/formResponse", False)
    $oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
    $SendString = 'entry.130629059=' & @UserName & '&entry.1530935491=' &$Program &'&entry.1571651137=' & $Action
    $oHTTP.Send($sendString)
    $oHTTP.Close
EndFunc

I use it to fill in an google form.

I'm now looking for a method without using winhttprequest 5.1

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
×
×
  • Create New...