All Questions
Tagged with request.querystring node.js
8 questions
0
votes
1
answer
2k
views
request.query does not print the query in Fastify (querystring)
I searched for ages, but it just wouldn't print the query, I've no idea what I should do. I'm also kind of new to Fastify. Also I'm sending the request to 127.0.0.1/?greeting=something.
const opts = {
...
-1
votes
1
answer
228
views
How to prevent unwanted request in node js express?
expected request:
{
"name": "Raju",
"email": "[email protected]"
}
Actual:
{
"name": "Raju",
"email": "email@...
12
votes
3
answers
45k
views
How to parse querystring parameter from URL in Fastify server?
I am a totally new to fastify but I have a fastify server running. I want to parse query string such as:
http://fake.com/?user=123&name=ali
I want to get "user" and "name" values from the URL ...
2
votes
1
answer
2k
views
Multiple types in query string in nodejs
I am creating a get api in nodejs.I am requesting the following url
http://localhost:8080/api?id=20&condition1=true&arr=[{prop1:1}]&obj={a:1,b:2}
And I am getting the request query ...
0
votes
0
answers
1k
views
Query params with special characters in nodejs
My URL:
http://abcde.com/result.aspx?q=(some%20name%20here%20):Done&p=1&pos=0&qType=2
Its working in postman and also in curl command. If i try this in nodejs code
var http = require("...
2
votes
1
answer
14k
views
Using 'querystring.parse' built-in module's method in Node.JS to read/parse parameters
Scenario:
Consider the following code:
var querystring = require('querystring');
var ParamsWithValue = querystring.parse(req._url.query);
Then I am able to read any query string's value.
E.g: If ...
29
votes
3
answers
28k
views
How to parse/read multiple parameters with restify framework for Node.JS
Scenario: We developer are trying to replace a web service (written in C#.Net) with Node.JS Restful API.
Issue: Now we need to handle the incoming request as is (we don't have control over it). So ...
15
votes
3
answers
28k
views
Node.js - Send and receive Array as GET/POST using querystring
I've got the following code, but it doesn't seem to work:
var post_req = {
array: [
[ {
param1: 'something',
param2: 123
} ],
[ ],
[ ],
...