First test: Navigate Webform and additional headers?

Discussion about the open-source Phalanger [?] project.

First test: Navigate Webform and additional headers?

Postby Phpdevpad » August 3rd, 2015, 4:35 pm

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.
Phpdevpad
 
Posts: 1
Joined: August 3rd, 2015, 4:23 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 3 guests

cron

User Control Panel

Login

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 3 guests
Phalanger