$query = "http://www.google.com"; $proxy = "http://username:password\@proxy:port"; $ua->proxy('http',$proxy); $response = $ua->get($query);