-
-
Save syrm/ee306a217af93ed842afd02f6eaba662 to your computer and use it in GitHub Desktop.
whatpulse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = [ | |
'client_version' => '2.8.1', | |
'xml' => '<?xml version="1.0" encoding="UTF-8"?><client><requests><request type="testproxy"><type_os>windows</type_os><client_version>2.8.1</client_version></request></requests></client>' | |
]; | |
$headers = [ | |
'Accept:', | |
'User-Agent: WhatPulse Client 2.8.1', | |
'Host: client.whatpulse.org' | |
]; | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, 'https://client.whatpulse.org/v1.1/'); | |
// curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, 1); | |
// curl_setopt($curl, CURLOPT_PROXY, '127.0.0.1'); | |
// curl_setopt($curl, CURLOPT_PROXYPORT, '8080'); | |
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | |
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, $data); | |
$response = curl_exec($curl); | |
var_dump($response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment