Get cURL command from Chrome Inspect Network HTTP URL

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,

  1. Open Google Chrome browser.
  2. Press F12 open Inspect, or press Ctrl + Shift + I
  3. Type in your URL in address bar example: and press enter.
  4. 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.
  5. Paste this cURL to cmd or bash and execute!
  6. It will get you the HTTP response.
Chrome URL to cuRL Example
Chrome URL to cuRL Example
GET Example:
curl '' \
  -H 'authority:' \
  -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' \
Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -