-
CLI HTTP that will make you smile. JSON support, syntax highlighting, wget-like downloads, extensions, and more.Pricing:
- Open Source
The code should be pretty straighforward. For every request to /proxy/{path}, it would make a request to httpbin.org/{path} with the same HTTP method. You could try requesting the new endpoint using different methods to see it in effect. Here I used HTTPie to test the endpoint:.
#CLI #Command Line Tools #Curl 46 social mentions
-
HTTP request and response servicePricing:
- Open Source
Use GuzzleHttp\Client as HttpClient; Route::any('/proxy/{path}', function(Request $req, $path) { $client = new HttpClient([ 'base_uri' => 'https://httpbin.org' ]); return $client->request($req->method(), $path); });.
#Developer Tools #Proxy #Testing 53 social mentions