How to extract parameters from an http get request in Node.js #1824
Unanswered
nodejsdevs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to handle an HTTP request in this format:
GET http://1.2.3.4/status?userID=1234
I am unable to extract the parameter userID from it. Despite using Express, I am facing difficulties. Even when attempting something like the following, it does not yield results:
My goal is to be able to retrieve the value 1234 regardless of the local parameter being used, such as user=userID. Is there a way to achieve this?
Same https://qanswer.space/questions/how-to-extract-parameters-from-an-http-get-request-in-nodejs
Beta Was this translation helpful? Give feedback.
All reactions