If you want to form a cURL command for a URL you visited on Google Chrome web browser, then its easy to do that, just follow the below steps,
- Open Google Chrome browser.
- Press F12 open Inspect, or press Ctrl + Shift + I
- Type in your URL in address bar example: https://code2care.org/tools/ and press enter.
- Now locate your URL -> Right Click on it -> Copy -> Copy as cURL (cmd) or (bash) based on if you are on Windows or macOS or Linix.
- Paste this cURL to cmd or bash and execute!
- It will get you the HTTP response.
Chrome URL to cuRL Example
GET Example:
curl 'https://code2care.org/tools/' \
-H 'authority: code2care.org' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/85.0.4183.102 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9' \
-H 'sec-fetch-site: none' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'accept-language: en-US,en;q=0.9' \
--compressed
More Posts related to cURL,
More Posts:
- ADT quit unexpectedly error on Mac OSX Android Eclipse SDK - Android
- Building library Gradle Project Info: Downloading services.gradle.org - Android-Studio
- Turn Off Google Analytics intelligence Alert Emails - Google
- MySQL Error :1006 SQLSTATE: HY000 (ER_CANT_CREATE_DB) Message: Can't create database 'mydb' (errno: 28) - MySQL
- Replace tabs by spaces or comma Notepad++ - NotepadPlusPlus
- PowerShell iterate and get all SharePoint sites and sub sites - SharePoint
- Turn on off volume change button sounds Mac OS X - Mac-OS-X
- Android Lint app_name is not translated in af (Afrikaans) am (Amharic) ar (Arabic) bg (Bulgarian) - Android
- How to Detect Phone Shakes Android Programming - Android
- MySQL : Error :1000 SQLSTATE: HY000 (ER_HASHCHK) Message: hashchk Server Error - MySQL
- How to add border to Android Button - Android
- How to Center Align Image in Bootstrap - CSS
- Recover SharePoint if the SQL Server IP changes - SharePoint
- Google Chrome Update failed (error: 12) - Chrome
- Send Email using SharePoint PowerShell command - SharePoint