Simple CURL HTTP Header Request, URL Test Tool
This page provides a raw PHP CURL HTTP Header URL analysis tool. The tool requests the HTTP header information given any URLs. You can check if any web page is compressed by looking for gzip or deflate in the http header. And the URL redirections are parsed and unrolled. You can also use the API easily to get realtime CURL output.
The results will be cached and kept for an hour.
API (Application Programming Interface)
The API following has a rate-limit 1 call per second.https://uploadbeta.com/api/curl/?cached&url=https://helloacm.comIt will return JSON-encoded data:
"HTTP\/1.1 200 OK\r\nDate: Fri, 26 Jun 2015 09:27:17 GMT\r\nServer: Apache\/2.4.7 (Ubuntu)\r\nX-Powered-By: PHP\/5.5.9-1ubuntu4.5\r\nX-Pingback: https:\/\/helloacm.com\/xmlrpc.php\r\nContent-Encoding: gzip\r\nVary: Accept-Encoding\r\nContent-Type: text\/html; charset=UTF-8\r\n\r\n"You can also pass the "url" parameter by POST method. For example:
curl -s -X POST "https://helloacm.com/api/curl/" -d "url=https://www.google.com"
Example Return:
"HTTP\/2 200 \r\ndate: Mon, 19 Nov 2018 20:46:50 GMT\r\nexpires: -1\r\ncache-control: private, max-age=0\r\ncontent-type: text\/html; charset=ISO-8859-1\r\np3p: CP=\"This is not a P3P policy! See g.co\/p3phelp for more info.\"\r\ncontent-encoding: gzip\r\nserver: gws\r\nx-xss-protection: 1; mode=block\r\nx-frame-options: SAMEORIGIN\r\nset-cookie: 1P_JAR=2018-11-19-20; expires=Wed, 19-Dec-2018 20:46:50 GMT; path=\/; domain=.google.com\r\nset-cookie: NID=146=M_QjE1WYkytFkYEpn80JmrKfGN8CtYhPnQ7ngGAILj9Tqs9tOZ2B9fmNmZPYivQ4anS6lK6SpMzQAfX2EbTUGGOMZNJvEBa5Zyzuhm_qAw__sDcaRytq9v37_4BlZ6iUSHwFxKTk0om1BkkROtnYFPRckcSFTRmQHaOTMmG55C0; expires=Tue, 21-May-2019 20:46:50 GMT; path=\/; domain=.google.com; HttpOnly\r\nalt-svc: quic=\":443\"; ma=2592000; v=\"44,43,39,35\"\r\n\r\n"
Curl API Servers
You can use one of the following API servers to access the CURL API - which is subject to fair-use policy:- Load Balancer: https://api.justyy.workers.dev/api/
Principle
We use the following command curl to request the HTTP header. Option -I means to request the header only and -H adds header for accecpt content-encondig gzip and deflate.curl -I -H 'Accept-Encoding: gzip,deflate' 'https://helloacm.com'
NAME
curl - transfer a URL
SYNOPSIS
curl [options] [URL...]
DESCRIPTION
curl is a tool to transfer data from or to a server, using one of the
supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP,
IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS,
TELNET and TFTP). The command is designed to work without user interâ€
action.
curl offers a busload of useful tricks like proxy support, user authenâ€
tication, FTP upload, HTTP post, SSL connections, cookies, file transâ€
fer resume, Metalink, and more. As you will see below, the number of
features will make your head spin!
curl is powered by libcurl for all transfer-related features. See
libcurl(3) for details.
