We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi All, I am new to luvit, Please help me to resolve below issues.
step 1 : i will request url as https://premium.boundary.com and i will get response status code as 301 and in response headers(res.headers.location) i will get url as (https://pulse.truesight.bmc.com/) and it is correct.
step 2 : I will request URL as (https://pulse.truesight.bmc.com/) and in response headers(res.headers.location) i will get (/home) . It should automatically redirect to (https://pulse.truesight.bmc.com/home) this url.
Please help me to resolve redirecting issues. If some one already faced same issue. Please share your inputs.
---Even i have checked in java it works perfectly (redirecting). --Please share information to info.patil87@gmail.com
The text was updated successfully, but these errors were encountered:
Seems like you probably need url.resolve from the node.js API, which is currently missing from Luvit.
url.resolve
url.resolve("https://premium.boundary.com", "https://pulse.truesight.bmc.com/")
"https://pulse.truesight.bmc.com/"
url.resolve("https://pulse.truesight.bmc.com/", "/home")
"https://pulse.truesight.bmc.com/home"
Sorry, something went wrong.
Automatic redirect is not supported in node.js core and the core luvit http library follows the node.js API.
What people typically do in node is use a userspace library like request that has a higher abstraction including automatic redirect.
And yes, as @squeek502 has said, Location headers need to be resolved against the current url to get the new full absolute url.
No branches or pull requests
Hi All,
I am new to luvit, Please help me to resolve below issues.
step 1 : i will request url as https://premium.boundary.com
and i will get response status code as 301 and in response headers(res.headers.location) i will get url as (https://pulse.truesight.bmc.com/) and it is correct.
step 2 : I will request URL as (https://pulse.truesight.bmc.com/) and in response headers(res.headers.location) i will get (/home) . It should automatically redirect to (https://pulse.truesight.bmc.com/home) this url.
Please help me to resolve redirecting issues. If some one already faced same issue. Please share your inputs.
---Even i have checked in java it works perfectly (redirecting).
--Please share information to info.patil87@gmail.com
The text was updated successfully, but these errors were encountered: