PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Ahmad Mustapha  >  QueryList Wrapper  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: QueryList Wrapper
Retrieve and scrape Web page using QueryList
Author: By
Last change:
Date: 2 years ago
Size: 620 bytes
 

Contents

Class file image Download
<?php
use Queliwrap\Client;
require(
'vendor/autoload.php');
require(
'src/Helpers/CookieHelper.php');
require(
'src/TheClient.php');
require(
'src/Client.php');

/*
Request::withCookie()
    ->redirects(function($wrp){
        $wrp->max(5);
        $wrp->strict();
        $wrp->referer('http://goo.gl');
        $wrp->protocol('http');
        $wrp->trackRedirects();
        $wrp->onRedirect(function(){
            echo "Redirection detected!";
        });
    });
*/

Request::get('https://google.com')
    ->
auth('ahmard', '1234')
    ->
body()
    ->
connectTimeout(2)
    ->
debug()
    ->
forceIPResolve()
    ->
exec();

For more information send a message to info at phpclasses dot org.