Page 1 of 1

First test: Navigate Webform and additional headers?

PostPosted: August 3rd, 2015, 4:35 pm
by Phpdevpad
I tried a tutorial from Phalanger with a Webbrowser and it works! :) But now I tried to autologin to a website but I can not send additional authentification headers with the Windows Webform control. It gives me method not found! Did I miss s/th?
Code: Select all
 
$authData = "test@mail.com:test";
$authHeader = "Authorization: Basic " + base64_encode($authData) + "\r\n" + "User-Agent: MyUserAgent\r\n";
$this->browser->navigate($url,"",null,$authHeader);

I looked in the documentation and Windows Webforms Navigate method takes 4 variables but it gives me always method not found!
I also tried it also with
Code: Select all
$authData = utf8_encode("test@mail.com:test");
but this give me error function utf8_encode not found? Sorry, if it's dumb question. Thanks.