vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Paste curl encoded requests containing https URLs / Generate HTTP Code Snippet from curl containing https URLs

Open bnord01 opened this issue 11 months ago • 0 comments

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

bnord01 avatar Jan 22 '25 15:01 bnord01