You can use Chrome's "Developer Tool" (Open with F11). Then you will see the "network" tab. Open this before you visit the required URL. Inside this tab you will see the entire query in this domain. Click on the first request, and on the right you will see the other tabs "headers", "preview", "response", "cookies", "time". On the headers tab, headers are sent to http for this page. You can use these headers in curl.
EDITED → If the connection is without a user interface, you need proxy software, for example: http://proxyworkbench.com/
fico7489
source share