Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http request fail using Host: #1301

Open
fp-jcorriveau opened this issue Sep 18, 2024 · 0 comments
Open

Http request fail using Host: #1301

fp-jcorriveau opened this issue Sep 18, 2024 · 0 comments

Comments

@fp-jcorriveau
Copy link

fp-jcorriveau commented Sep 18, 2024

REST Client
Version: 0.25.1

VSCode
Version: 1.93.1
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631 (windows 11)

It fails when using this format :

POST /codification/api/v1/engine/coding HTTP/1.1
Host: portal.dev.priorx.ca
Content-Type: application/json
Authorization: Bearer __token__
Content-Length: 487

{ payload }

But succeed using this :

POST https://portal.dev.priorx.ca/codification/api/v1/engine/coding HTTP/1.1
Content-Type: application/json
Authorization: Bearer __token__
Content-Length: 487

OR curl

curl --location 'https://portal.dev.priorx.ca/codification/api/v1/engine/coding' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer __token__' \
--data '{ ... }'

Is it due to https?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant