Skip to main content


Use CURL library to get token and lists in Magento2

'cURL' is a command-line tool that lets you transmit HTTP requests and receive responses from the command line or a shell script. It is available for Linux distributions, Mac OS X, and Windows. To use cURL to run your REST web API call, use the cURL command syntax to construct the command. To create the endpoint in the call, append the REST URI that you constructed in Construct a request to this URL: https:////rest/ To pass the customer data object in the POST call payload, specify a JSON or XML request body on the call.

Showing the total of the loaded time of the page

If you want to see the total loaded time for any page to compare the time between the first and second time you can use this command 


curl -L --output /dev/null --silent --show-error --write-out 'lookup:        %{time_namelookup}\nconnect:    %{time_connect}\nappconnect:    %{time_appconnect}\npretransfer:   %{time_pretransfer}\nredirect:      %{time_redirect}\nstarttransfer: %{time_starttransfer}\ntotal:      %{time_total}\n' ''