P peve9 Member Licensed User Longtime User Apr 3, 2013 #1 Hello everyone, I have some problems with HttpClient and its method ExcecuteCredentials. Have a look at this example. Code: Copy Dim HC As HttpClient Dim req As HttpRequest HC.Initialize("hc") req.InitializeGet("http://www.prova.com/index.php?test='hello'") HC.Execute(req,1) in my index.php to obtain "hello" i can use $_GET['test'] Code: Copy Dim HC As HttpClient Dim req As HttpRequest HC.Initialize("hc") req.InitializeGet("http://www.prova.com/index.php?test='hello'") HC.ExecuteCredentials(req,1,"admin","root") using this code with ExecuteCredentials how can i obtain "admin" and "root" in my index.php? i need :sign0085:
Hello everyone, I have some problems with HttpClient and its method ExcecuteCredentials. Have a look at this example. Code: Copy Dim HC As HttpClient Dim req As HttpRequest HC.Initialize("hc") req.InitializeGet("http://www.prova.com/index.php?test='hello'") HC.Execute(req,1) in my index.php to obtain "hello" i can use $_GET['test'] Code: Copy Dim HC As HttpClient Dim req As HttpRequest HC.Initialize("hc") req.InitializeGet("http://www.prova.com/index.php?test='hello'") HC.ExecuteCredentials(req,1,"admin","root") using this code with ExecuteCredentials how can i obtain "admin" and "root" in my index.php? i need :sign0085:
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2013 #2 I recommend you to use HttpUtils2 instead of HttpClient directly. You can just add the credentials as part of the GET parameters if you want to read them in your script. Upvote 0
I recommend you to use HttpUtils2 instead of HttpClient directly. You can just add the credentials as part of the GET parameters if you want to read them in your script.
P peve9 Member Licensed User Longtime User Apr 3, 2013 #3 Just one more thing.. Can I use it also with POST method? Thanks Upvote 0