Re:Show HN: Curl https://ec2.shop
by codetrotter on Tuesday June 30, 2020 @08:27AM
(#23689347)
> realised that it actually need to check the user-agent
Like someone suggested for the featured page as well, I recommend you make use of the accept header.
For example, assuming your interface is outputting freeform text (since the goal was to have something readable in terminal), you could use something like this:
Accept: text/vnd.myproject.tui+plain; version=1.0
(Substitute “myproject” with the actual name of your project.)
Like someone suggested for the featured page as well, I recommend you make use of the accept header.
For example, assuming your interface is outputting freeform text (since the goal was to have something readable in terminal), you could use something like this:
(Substitute “myproject” with the actual name of your project.)