Pass username & password to URL in Simple vb code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RAldridge
    New Member
    • May 2009
    • 2

    Pass username & password to URL in Simple vb code

    Hi, I am a complete newb and experimenting with the VB code below. When I run this, the device on my intranet waits for username and password until it processes the resource. It there a way to pass the username and password in the code so I can automate the url? If I can automate it, then I can take out the .visible. Thanks so much.


    Option Explicit
    Dim objIEA
    Set objIEA = CreateObject("I nternetExplorer .Application")
    objIEA.Navigate "http://192.168.1.111/rest/programs/0082/runThen"
    objIEA.visible = true
    While objIEA.Busy
    Wend
    objIEA.Quit
    Set objIEA = Nothing
  • RAldridge
    New Member
    • May 2009
    • 2

    #2
    RESOLVED Pass username & password to URL in Simple vb code

    I got this to work with Function Base64Encode.

    Comment

    Working...