200 questions
1
vote
1
answer
57
views
ASP.NET Core 6 Web API : use queryString on complex json can not bind successfully
When I use the GET API to send a complex JSON format, the backend cannot obtain the data correctly.
This my query string data:
{
"page": 1,
"page_size": 10,
"...
0
votes
0
answers
121
views
Why doesn't [FromQuery] work when unit testing a Razor page?
I have this property in a PageModel:
[FromQuery(Name = "paypalPlanId")] public string? paypalPlanId { get; set; }
It works when calling the page within the application - the property is set ...
0
votes
0
answers
232
views
Request.QueryString with AJAX request
I'm trying to join all inputs at an AJAX call to a single string var.
In the backend we have a public JsonResult() which is being called from the frontend with their arguments.
With Request....
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 = {
...
2
votes
1
answer
2k
views
Multiple values of a querystring parameter that contain commas C#
I have an issue in ASP.Net when trying to interrogate the query string for values when the parameter name is the same, and the values of that parameter contains commas.
For Instance, suppose I have a ...
1
vote
2
answers
4k
views
Laravel - use Request in a function that call another function
I need to retrieve also query string params after registration, so I'm using Request $request in both functions, but how I can pass Request also in second function?
thanks in advance!
protected ...
1
vote
1
answer
143
views
how to decode string on php. iconv decode is not work [duplicate]
request
http://a.com/?q=\xC3\xA2\xB0\xED
source
$str1 = "\xC3\xA2\xB0\xED";
$str2 = '\xC3\xA2\xB0\xED';
$str3 = $_GET['q'];
echo "string1 : " . mb_detect_encoding($str1) . "&...
1
vote
1
answer
885
views
Web scraping dynamic website with scrapy and query string parameters
We aim at obtaining data from "vivino (dot) com".
Specifically, for each wine, we need both user ratings and reviews.
Unfortunately, we are coping with issues with query string parameters ...
0
votes
0
answers
99
views
Why does IIS care if "convert" is misspelled in a query string?
I am trying to understand the behavior of a classic ASP page, to gain insight into injection vectors by looking at the IIS log and the behavior on a browser.
From the browser, I noticed that sometimes ...
1
vote
1
answer
2k
views
htaccess send 404 if query string contains keyword
I'm seeing a lot of traffic which I suspect is probing for a flaw or exploit with the request format of
https://example.com/?testword
I figured while I look into this more I could save resources and ...
-1
votes
1
answer
233
views
How to prevent unwanted request in node js express?
expected request:
{
"name": "Raju",
"email": "[email protected]"
}
Actual:
{
"name": "Raju",
"email": "email@...
0
votes
1
answer
341
views
C# REST API query parser
I'm learning, how to code rest api in C# and I have some problems with query string parameters parsing.
API works this way:
1: I have 1 endpoint api/project which can have some parameters in query ...
1
vote
1
answer
51
views
Remove querystring value inside repeater
I have the below code (parts removed for ease of reading)
<asp:Repeater ID="rptMenu" runat="server" OnItemDataBound="rptMenu_ItemDataBound">
<ItemTemplate>
...
0
votes
0
answers
201
views
Unable to retrieve query string parameter value by using Laravel 5.6
I am unable to retrieve the query string parameter value from the URL. My project is running in sub-directory.
Please find the following details about my code
**Request & result **
http://...
0
votes
0
answers
509
views
How can I shorten the query string?
I have an MVC Core application, and one of the forms on submit passes a too long query string:
HTTP Error 404.15 - Not Found The request filtering module is
configured to deny a request where the ...
0
votes
0
answers
240
views
How to implement browser url and query string escaping on server side?
I maintain an asp.net 4.0 application, not MVC, based on some close source and I must implement some anti-xss in query parameters it uses. I can't access all the code and altering all the components ...
1
vote
4
answers
3k
views
How do i pass a command argument of a button in Data List to another page?
Actually i am trying to redirect command argument of a button present in a data list to another page. I am using Request.QueryString method to access the command argument on another page with the help ...
0
votes
1
answer
177
views
WordPress custom query-string not index by Google
I have a WordPress site (www.AgingSafely.com) and on it I have built a plugin to show the “Details” about various Adult Family Homes (AFHs). All of the details are retrieved out of database table via ...
12
votes
3
answers
46k
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 ...
1
vote
2
answers
1k
views
IIS rule "http rewrite" causes querystring duplicate
I set an IIS rule to redirect http traffic to https traffic, so I used the http rewrite rule. My original url contains 1 querystring param. When the rewrite is applied my new https url contains a ...
0
votes
2
answers
3k
views
How to fetch Name/Value of Request.Querystring using For Each Loop but in the same order sent?
I was trying to fetch the Name/Value of a querystring using For Each loop, as per @kloarubeek answer shown in → Request.Querystring(variablevalue) possible? as follows:
For Each Item in Request....
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 ...
1
vote
0
answers
871
views
how to write a conditional query string using unirest in java
Im trying to get the records with id's greater than 1000 let's say.
and I'm using unirest in java. I've tried to use queryString but it did not work.
HttpResponse<JsonNode> responsePatientTest =...
0
votes
0
answers
54
views
unable to get query string value after URL rewriting?
I have this rule in my .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^pages/([a-zA-Z0-9_-]+)$ pages.php?alias=$1 [L]
URL structure is like website/pages/about-us
where about-...
0
votes
1
answer
458
views
White spaces in the URL and request.query_string will return %20 in the output
I need to have access to the sentence after question mark like follow(I am using flask and python):
http://localhost:8000/answer?the new book is added
I use the following code:
query_string = ...
0
votes
1
answer
228
views
strange encoding to querystring
i have created two aspx pages for the demo,
page1 - WebForm1.aspx
<asp:TextBox ID="txtTest" runat="server" Width="100px"></asp:TextBox>
<asp:Button ID="btnClick" runat="server" Text="...
0
votes
0
answers
867
views
Different results of UTF-8 encoding to URL parameter with particular languages between RawUrl and QueryString in HttpRequest
Update - 31 Aug
string test = "ö";
string unicode1 = HttpUtility.UrlEncode(test, Encoding.Unicode);
string unicode2 = HttpUtility.UrlEncodeUnicode(test);
Console.WriteLine("Result of unicode1: " + ...
4
votes
1
answer
9k
views
how to get query string parameters from url in aiohttp?
I tried to get query string parameters from url by using aiohttp, but this code does not work :
async def call_answer(request):
print("request", request)
params = request.rel_url.query
...
0
votes
0
answers
20
views
unable to get complete url after # using query string in asp.net c# [duplicate]
hi i am unable to get complete url using Query Sting in asp.net C#.
This is due to '#'.
My url look like ID=OOP-Concepts-in-C#:-Code-Examples-and-How-to-Create-a-6
Code :string Qstring=Request....
1
vote
2
answers
4k
views
Extract case-insensitive query parameter from URL
I am trying to extract the case-insensitive query parameter /staging/ec/23463/front-view-72768.jpg?angle=90&or=0x0&wd=400&ht=200 from the URL. When I try to convert the whole URL in ...
0
votes
0
answers
43
views
Server stores same Querystring value asp.net
I have used QueryString to take value from clicked menu, on redirect I filter values of page on basis of QueryString value.
But every time Request.QueryString returns the same value even if there are ...
0
votes
0
answers
570
views
Odd behaviour if querystring begins with an ampersand
I've isolated an odd behavior in ASP Classic, Windows server 2016, IIS 10.0
Run this code:
For Each Item in Request.QueryString
Response.Write Item & ": " & Request.QueryString(Item) &...
0
votes
1
answer
45
views
How to obtain value from vars
Am trying to get value from request.vars but end up getting a null value.
My code:
if request.vars.message:
return request.vars.message
R = request.vars.message
return dict (R=R, form =form)
My ...
0
votes
0
answers
16
views
Check query string (or maybe not a query string) to see if value equals [duplicate]
I have the following URL:
http://testexample.htm#tab=matchup&schoolid=74c1621c-e0cf-4821-b5e1-3c8170c8125a
In my code, I want to check to see if "tab" equals "matchup" in the URL
if (Request....
1
vote
0
answers
198
views
Wrong bundle_option_qty into cart magento 2
I'm trying to put into cart the selections of my bundle (query string) but I'm getting back always a wrong number of items into cart.
Below an example:
I have a bundle with bundle option 8664.
Inside ...
2
votes
1
answer
1k
views
How can I check to see if an http request has no query strings in ASP.Net Core web API
I am working on an ASP.Net Core web API using REST verbs with optional query string parameters.
For example, the API call looks like this;
http://localhost:5010/servicetypecode?stc=123
or
http:/...
5
votes
2
answers
19k
views
Why isn't FromQuery working in my ASP.Net Core 1.1 controller action
I am working on an ASP.Net Core 1.1 web API. I have a ServiceTypeCode controller as shown below;
[Produces("application/json")]
[Route("api/[controller]")]
public class ServiceTypeCodeController : ...
0
votes
1
answer
1k
views
redirecting to another asp.net page using request.querystring in asp.net
int ob=0;
protected void Button1_Click(object sender, EventArgs e)
{
ob = Convert.ToInt32(Request.QueryString["value"].ToString());
if (RadioButton1.Checked == true)
{
ob = ob + ...
0
votes
0
answers
497
views
URL and query string in Grails UrlMappings
After searching for a while, I'm still not able to do the following using Grails. I want match a variable with some part of URL plus the query string.
I have the following rule in UrlMappings:
"/...
-2
votes
1
answer
129
views
How to send/receive image in wordpress web services
I just wrote web services for wordpress like login, register, pass update, etc...
Now I want to user can upload images from iOS device and send this via web services(query string). I am not sure how ...
0
votes
1
answer
648
views
Query String converts space to ? (symbol) in asp.net
I have an aspx web forms application developed in C#. Now the web page are being called from other application with query string parameter.
Now the issue is, when the query string parameter value is "...
1
vote
1
answer
3k
views
How to change the maximum URL length permitted on Microsoft Azure Application Gateway?
URL querystrings for complex REST queries are failing for an application behind the Azure Application Gateway. When run locally a long URL > 2048 characters is passed on fine indicating the issue is ...
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
79
views
How can I parse a string of an array into an array? [duplicate]
{scenarios: "[{purchasePrice:11,downPayment:1,term:30,rate:1}]"}
That's my object. I want to turn the value of scenarios into the array its trying to be from the string it is.
Is there a quick tool ...
2
votes
2
answers
6k
views
Return url functionality
I'm using ASP.NET Core MVC with C#.
I have a functionality on my Login controller to take a parameter called ReturnUrl. The Idea is, that if this is set when the user logs in then I can redirect them ...
1
vote
1
answer
5k
views
How to add query string and json data to httpWebRequest type POST
Javacode here:
function sendTextMessage(sender, text) {
messageData = {
text:text
}
request({
url: 'https://graph.facebook.com/v2.6/me/messages',
qs: {access_token:token},
...
-3
votes
2
answers
4k
views
How to get the value of a Query String which includes an ampersand &? [duplicate]
I need to retrieve the value of a query string for a department using .net c# but as some of the department names include an '&' as soon as it is read it stops after the &
www.example.co.uk/...
0
votes
2
answers
3k
views
ASP.Net Querystring - Multiple values
Is it possible to pass multiple values to a single Querystring parameter? Here is what I am thinking:
index.aspx?loc=wi&mi&mn
or
index.aspx=?loc=wi&loc=mi&loc=mn
Something like that....
1
vote
0
answers
111
views
Weird characters in ASP.Net (C#) URL link stops Request.QueryString processes [duplicate]
I created a page in my web application that allows the user to change the account's e-mail address. To do so there is a form to complete and then a verification link is sent to the current email, the ...
0
votes
1
answer
367
views
Transform JS object to HTTP GET request query string (using jquery)
I want to request GeoServer using AJAX. Since those request have long query strings I want to modify them comfortably using a js object like this:
defaultParameters = {
service: 'WFS',
...