5,165 questions
0
votes
1
answer
85
views
Using [FromQuery] with a .NET controller for an optional boolean query string parameter where presence alone should set it
.NET has [FromQuery] to get query parameters on the path.
For instance my/foo?bar=1 maps to:
public class MyController : Controller
{
[HttpGet]
public async Task<Whatever> Foo([FromQuery]...
1
vote
1
answer
95
views
Excel Power Query - Dynamically change date in source url from cell value
This is a fairly simple question but I am unable to find any relevant documentation for it.
Having created a power query in Excel how can I alter the date in the url string from user input on the ...
0
votes
1
answer
91
views
Why am I getting Event validation failed when defining query params in a Godspeed HTTP event?
I’m creating a simple HTTP GET event in the Godspeed framework. My goal is to accept a query parameter called name and return a response. However, when I define the event YAML with type: string ...
0
votes
0
answers
31
views
Rename get parameter via mod_rewrite
I want to rename specific http get parameter since application (NextCloud) changed it from path to dir and I want to preserve compatibility with old links.
Original URL was: https://example.com/index....
0
votes
2
answers
97
views
Why does one ASP.NET Core route use a slash (/) for parameters while another uses a query string (?)?
Program.cs
app.MapControllerRoute(
name: "index",
pattern: "{controller=Home}/{action=Index}/{id?}"
);
app.MapControllerRoute(
name: "read",
pattern: &...
0
votes
2
answers
73
views
How to make dynamic path that will be represented as list in aiohttp server?
Let's say that I have an example code:
from aiohttp import web
async def example(r):
a = r.match_info.get('a')
b = r.match_info.get('b')
c = r.match_info.get('c')
return web.Response(...
1
vote
2
answers
104
views
Query params not available when running with yarn serve:ssr
I created an app called dummyapp using Angular CLI version 19.2.5 with the --ssr option (ng new dummyapp --ssr).
In the app.component.ts, I'm trying to retrieve the title from the query string. Here's ...
1
vote
0
answers
80
views
Escape commas in List<String> queryParam in Spring Boot
I have a Spring Boot REST API, generated via OpenAPI that accepts a list of strings as a query parameter. However, when a tag contains a comma (,) (e.g., "Testing, String"), Spring ...
0
votes
0
answers
76
views
How to disable AWS REST API Gateway query parameter decoding sent to HTTP backend
AWS REST API Gateway decodes query parameters before sending them to HTTP integration backend. But it decodes space written as %20 into +, which is not acceptable for our solution. All chars should be ...
0
votes
0
answers
63
views
Get count of specific key from request query string
I am working on my first server side jQuery datatable code. It does not seem datatable request string contains any info about count of columns, but does have individual column info, such as columns[i][...
0
votes
1
answer
1k
views
How to avoid the login window when accessing a Facebook profile page onload?
It can be anything; like a URL variable that we can put after or in front of the URL to avoid the login window when accessing a Facebook page...
So: we have a redirect to https://www.facebook.com/...
3
votes
0
answers
383
views
how to validate OpenAPI-specific request query parameters against corresponding open api specs in spring boot
I am using com.networknt:json-schema-validator lib to validate the incoming json request body in my spring boot server against the pre loaded schema and its working fine. Now I also want to validate ...
-7
votes
1
answer
124
views
Replace the querystring of an href declaration in an <a> tag
I want to replace the following hyperlinks dynamically
from
<a href="/xsearch2?q=some search/21">21</a>
to
<a href="/xsearch2?q=some search&page=21">21</a&...
0
votes
1
answer
61
views
How to use javascript variables in URL as querystring parameters [duplicate]
I want to use javascript variables in URL as querystring parameters. what is correct way?
var fromSemester = document.getElementById('<%= newFromSemesterValue.ClientID%>').value;
var ...
1
vote
1
answer
41
views
Encode checkboxes in query string then decode to set elements visible
I feel like I'm trying to reinvent the wheel here in terms of encoding and decoding the query string.
I am using jQuery. I am creating a simple picture gallery with checkboxes for categories of what ...
0
votes
0
answers
50
views
Get query params of powerpoint-web from microsoft add-ins
I am redirecting user to the microsoft web page from my react app and passing extra query params with it (myValue) something like
oneDrive.live.com/extraCode/Doc.aspx?resid=A&cid=B&myValue=...
0
votes
1
answer
71
views
Azure logic apps encode left bracket in json query param names to ~2. How can I rewrite with concat and/or replace functions?
I need a method to overcome logic apps' encoding. See "~2" in place of "[" below:
"parameters~20]~2field]": "date_start",
"parameters~20]~2value]&...
0
votes
1
answer
2k
views
Tanstack Router Link with search params where one key has multiple values
I'd like to provide a search property to my Link component where they query string key can have multiple values (an array)
<Link to="/foo/bar" search={{group_by: ['foo', 'bar']}} ...>
...
0
votes
1
answer
247
views
How to add script src dynamically with getElementById?
Go easy on me - I don't spend a lot of time in javascript. :D
I am trying to write a script that will build a JS call based on a URL query, but cannot get the script src to update.
For example, if ...
2
votes
3
answers
130
views
merge two ParamMap angular
I have the following code that works fine:
let urlParameters = combineLatest(
[this.route.params, this.route.queryParams], (params, queryParams) => ({
...params, ...queryParams
}));
...
0
votes
1
answer
43
views
Nestjs default param mapping
I have this controller method below, that I want to be able to call like I want to call the method like add/1:
@Controller()
export class MyController {
@Post('add/:id')
async add(@Body() data: ...
-1
votes
1
answer
48
views
IIS Worker Processes - Translating Requests - Odd Querystrings
In trying to track down some slow page load times, I've begun to look at the IIS Worker Processes.
I am new to interpreting the IIS Worker Processes (Requests) section, and I've noticed that a ...
4
votes
1
answer
640
views
Sending query parameter via SvelteKit form action
I have created a website using SvelteKit. I am using form action for handling login form.
src/routes/(beforeAuth)/login/+page.svelte have login form
<form use:enhance method="post" action=...
0
votes
0
answers
310
views
java.lang.IllegalArgumentException: Invalid character ' ' for QUERY_PARAM
I am trying to upgrade spring boot 2.3 to 3.2 , i am getting below error if query parameter contain space (' ') Character. i tried several things but did not find any solution yet.. Can anyone help me ...
0
votes
1
answer
177
views
Wordpress pass extra variables in URL as a slug
I want to create page where I can show all the category tree and on click on them show child tree of that category.
I have functionality working as short code where i am using query string to pass ...
1
vote
1
answer
235
views
How to parse in search param that is multi valued into useNavigate?
I have data as follows:
const basket = {
type: 'fruits',
filter: 'sour',
filter: 'sweet,
}
I am using React-Router useNavigate() to navigate to another webpage after selecting the column ...
-1
votes
1
answer
159
views
How to select URL parameter and exclude all the other stuff that comes after it?
I'm using dynamic text based on a URL parameter. Basically, the goal is to select the first word in the URL parameter and insert it into a paragraph. However, in my current code, it selects the first ...
0
votes
1
answer
63
views
/ in parameter which will be passed in url
I am facing issue when I pass a parameter which contains / in it; the url will assume as separate route and eventually request fails.
For example - this is my endpoint:
http://domainname/...
0
votes
2
answers
210
views
How to deserialize boolean params.permit value correctly to make sure it's boolean in Rails
There are params to permit:
{
"string_value": "value",
"boolean_value": "true/false",
"other_value": "blabla"
}
I need to convert ...
2
votes
1
answer
2k
views
Is there any way to get complex object from query string in ASP.NET Core 8?
I'm trying to get a complex object from query string, object has some primitive types and 2 arrays of classes for filtering and sorting, but when I get the object from query string these 2 arrays are ...
2
votes
2
answers
114
views
Limit a query argument to a maximum length
I have a form in which the user can enter a string into a textarea. This string will then be used as a query argument in an api call to an external service.
The service has a limit for the lenght of ...
2
votes
2
answers
984
views
Laravel get method query paramteres are coming as string, I need them in their original data type such as boolean
I am sending Query Params in Postman to a GET route.
The first parameter is sortByLocation which is a boolean value:
Of course I want to get it as boolean at backend.
I have a Form Request class ...
0
votes
1
answer
73
views
Firebase Cloud Functions internal server error when trying to curl URL with query parameters
I'm trying to pass some URL parameters to my cloud function and I keep facing an internal server error when I try to make a request. Does anyone have an idea of what might be causing it?
curl -X POST &...
4
votes
1
answer
952
views
How to Use Pydantic Model as Query Parameter in Litestar GET Route
I’m trying to create a GET route with Litestar that utilizes a Pydantic model as a query parameter. However, the serialization does not work as expected.
Here is a minimal example that reproduces my ...
0
votes
0
answers
48
views
Spring controller and processing of parameter string as an array of strings
I encountered this problem. I have a simple spring REST controller that has a get method, it should process a request like this http://localhost:8080/test/get?params=["param1", "param2&...
1
vote
1
answer
113
views
Jest error: Jest encountered an unexpected token - query-string import
I'm getting the following:
babel.config.json:
{
"presets": [
["@babel/preset-env", { "targets": { "esmodules": true } }],
["@babel/preset-react&...
1
vote
1
answer
376
views
URL Length Limit and Query Parameter Constraints in Front-End to Back-End Requests
While developing a mechanism for front-end requests to the back-end, I've encountered an issue regarding the URL length when carrying multiple query parameters. Is there a length limit for URLs? If so,...
0
votes
1
answer
138
views
GScript: DriveApp.searchFiles - Parameter for filetype
How do I have to extend the search parameter if I also have to search for GSheet files only?
function myDeleteSharingPublicLinks() {
var MyAccount = Session.getActiveUser().getEmail();
var ...
-1
votes
1
answer
294
views
Query parameter causing error on semrush SEO
My requirement was to pre-fill one specific field of webform using query parameter and I have done it but due query parameter semrush (SEO) is claiming hundreds of pages as duplicate for example some ...
0
votes
1
answer
94
views
Using procmail to pipe to a php script, can I add a variable to be checked [closed]
I have a procmail script set up which pipes to a PHP script when an email subject line matches:
:0
* ^[email protected]|^Subject.*(REMOVE|Undelivered Mail)
| /usr/bin/php -f /var/www/somefolder/...
0
votes
1
answer
101
views
How can I get BizTalk to allow a large array in querystring for consuming a REST service?
My problem is that I want to consume a REST service that have an array as input parameter, and I have a lot of items in the array (about 2 500 characters in total, which is allowed by HTTP protocol).
...
0
votes
0
answers
46
views
Getting Query Parameter before props in VueJS
I just want one help. Here I have AccountAdmin.vue file is there. In that file, I am requesting parameter from router.push. I got parameter in URL, but problem is that in props, parameter not set ...
0
votes
0
answers
38
views
HTTP client POST parameters
I need to POST to an endpoint in the following format
url?param1=val1¶m2=val2
I tried using
Dictionary<string, string> jsonValues = new Dictionary<string, string>();
jsonValues.Add(...
3
votes
1
answer
182
views
How to Filter by Status in Django Rest Framework with Square Brackets in Query Params
I'm encountering an issue with filtering a model by status in Django Rest Framework. Here's my current setup:
When I filter using status=1,14, it works perfectly:
class DepartmentFilter(filters....
1
vote
1
answer
348
views
@auth0/nextjs-auth0 - How to get Nextjs api request query parameters within nextjs-auth0 handleAuth function, using App router
Within a Nextjs app, I am using the handleAuth function in @auth0/nextjs-auth0, using the App router, and want to pass a dynamic email address to the handleLogin function. I can pass a predefined ...
-2
votes
2
answers
138
views
Get Value From Query String (C#)
I have a query string that I want to get a value from. I want to extract a piece of text from the string and display it but I can't quite figure it out.
This is the query string:
utm_source=google&...
0
votes
3
answers
147
views
How to use the text that search with FTS by parameter in ASP.NET C#
I coded a site with ASP.NET, C# and a SQL Server database. I want to search in database with full-text search by passing a query from C# to SQL Server. In summary, the problem occurs when I use ...
0
votes
0
answers
110
views
Sending complex nested query params with node.js
I am designing a report filter, and attempting to establish the best way to allow the user to filter the results returned to them, via a form on the front end in angular. The user should be able to ...
0
votes
0
answers
44
views
Reload page with no querystring if original querystring yielded no results from a database query
I've the following code for filename usa.php
$query = "SELECT * FROM usa WHERE deleted='0' AND filename<>''";
$stmt = $conn->prepare($query);
$stmt->execute(array());
$...
0
votes
1
answer
163
views
Combine the values from all url parameters
Say I have a url that looks like this:
mysite.com/?filter_club_officer=President&filter_club=Houston%20Club
How can I use javascript to get this result?
President-Houston%20Club
I managed to get ...