Skip to content

Instantly share code, notes, and snippets.

@puckbag
puckbag / guzzle-custom-curlfactory.php
Last active November 1, 2019 23:06
Custom Guzzle CurlFactory
<?php
require __DIR__ . '/vendor/autoload.php';
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Handler\CurlFactory;
use GuzzleHttp\Handler\CurlHandler;
use GuzzleHttp\Handler\CurlMultiHandler;
use GuzzleHttp\Handler\EasyHandle;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<style>
#col-1 {
background-color: rgba(255, 0, 0, 0.5);
}
#col-2 {
#!/usr/bin/env bash
# Installation
#
# $ bash <(curl -s https://gist.githubusercontent.com/puckbag/2e8b3c68bd21ed895ee793d8bc97f04d/raw/install-nodenv.sh)
#
# Reference
#
# https://github.com/nodenv/nodenv
#!/usr/bin/env bash
##
## Usage:
## http-response-headers.sh 'http://www.example.com/test/' '127.0.0.1'
##
#!/usr/bin/env bash
URL="$1"