How to add an HTTP header to a URL

I am working with an API that provides an HTTP header with the name token with a value of 12abc3 , and my url is https://example.com/view/quote , is there a way with which I can add the header as a parameter in the url so that I can enter it directly in the address bar of the browser, instead of using cURL or Hurl.it ??

+6
source share
1 answer

The only way I can imagine that this can be done is to write a small HTTP proxy that accepts a specially formatted URL and extracts the header values ​​from the URL and resends the request for you. I do not know what service you will do for you automatically.

0
source

Source: https://habr.com/ru/post/1202203/


All Articles