TwistPHP Documentation

setUserPass

File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

setUserPassSet a username and password, this will log you into any request that may have HTTP User Restriction in place

Parameters

Name Type Description
$strUsernamestringn/a
$strPasswordstringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strUsername 'foo';
$strPassword 'foo';

//Call the function setUserPass with the example vars
Twist::Curl() -> setUserPass($strUsername$strPassword);