vscode-restclient
vscode-restclient copied to clipboard
Paste curl encoded requests containing https URLs / Generate HTTP Code Snippet from curl containing https URLs
In #1071 it was mentioned that while directly pasting curl encoded requests (like copied from Chrome) is not supported one should use the generate code functionality. However this loses the protocol for https requests.
Example:
Given curl 'https://example.com' , running "Generate Code Snippet" > "HTTP" generates the following snippet that misses the https completely:
GET / HTTP/1.1
Host: example.com