5,155
questions
0
votes
0
answers
26
views
Opensearch Queries for query_string, match_phrase or wildcard?
body = {
"from": payload.start,
"size": payload.size,
"query": {
"bool": {
}
},
"sort"...
0
votes
0
answers
29
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
58
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
48
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
47
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
50
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
97
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 ...
0
votes
0
answers
36
views
How to redirect all query string URLs of this type
I can't direct links followed by queries in PHP calls I would like to direct only some PHP pages
I have urls that call certain php pages and are followed by query strings,
https://hello.it/tr/wp-admin/...
0
votes
1
answer
97
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
77
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 ...
1
vote
2
answers
62
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 ...
1
vote
1
answer
46
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 &...
0
votes
0
answers
48
views
Is there a way to use query-string to filter through data from Sanity?
//sanity/queries/page.ts
import { groq } from "next-sanity";
import { client } from "../lib/client";
import { Category, Component, License, Tag } from "@/types/types";
...
2
votes
1
answer
135
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
38
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
60
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&...
0
votes
0
answers
36
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
72
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
85
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
59
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
50
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
36
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
31
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
69
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
90
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
70
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
96
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 summery, the problem occurs when I use ...
0
votes
0
answers
69
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
33
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
0
answers
20
views
How to pass parameters of a controller function with AjaxExtensions.ActionLink via request body?
I was using LinkExtensions.ActionLink (with HtmlHelper) to pass parameters to a function in a controller. It's a significant amount of data that I convert to and from base64 using a model binder (an ...
0
votes
1
answer
53
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 ...
0
votes
1
answer
62
views
How to decode "+" as a space in URL query?
I am trying to use urlencoding (version 2.1.3) to decode the datetime from a URL like this:
fn main() {
let result = urlencoding::decode("gmt_create=2024-05-05+11%3A14%3A19");
print!(...
2
votes
1
answer
103
views
Google Apps Script doGet() function not recognizing query string
I am communicating with google apps script with the following:
$.get(url, "name=alice&n=1&n=2", function(data) {
...
}).fail(function(xhr, status, error) {
...
});
...
0
votes
1
answer
243
views
NestJS nested objects as query params + OpenApi documentation
I am using NestJS as backend and my use case is the following:
I would like to have nested objets as query params to filter on dates but on possibly several fields.
Exemple of url = GET /contents?...
1
vote
1
answer
1k
views
.NET Minimal API mapping List<T> parameter as [FromQuery]
I want to map List<T> from query string in .NET 8 Minimal API.
Tried like this:
public record ColumnFilterDto(string Column, object Value);
app.MapGet("/", (
[FromQuery] List&...
1
vote
3
answers
5k
views
NextJS app router - get all query parameters in string
I thought this would be easy but I am struggling greatly.
I have a page with multiple query params:
/pathname?param1=lorem¶m2=ipsum¶m3=dolor¶m4=sit
All I want is to be able to ...
0
votes
0
answers
68
views
Blazor Server failing with unexpected query parameters
I have a Blazor web app with an index page at the route "/".
When accessed through myhost/myapp everything works fine. However, I published the url in a Facebook post and when users tap that ...
0
votes
0
answers
13
views
Global search parameters that works on any and almost every APPLICATIONS
Good day all,
I have a platform where we manage users 2FA tokens, we search and manage users one after the other.
However, we need to manage multiple users at once but there is no delimeter, ...
0
votes
0
answers
45
views
Apache Traffic Server 9.2.x cannot redirect `target` url to `replacement` url that contains a query-string
Recently, I've migrated my environment from the VERY old Apache Traffic Server 5.x to Apache Traffic Server 9.2.x. Everything's working great! EXCEPT I no longer seem to be able to redirect a target ...
-1
votes
1
answer
53
views
how can i send query string through react to the backend
import React, { useEffect, useState } from "react";
import { Form, Row, Col, Button } from "react-bootstrap";
import { useParams, useNavigate } from "react-router-dom";
...
0
votes
1
answer
60
views
Best way to split the query params that is present in a string and then encode
I have few strings that could be in this format:
const s1 = "https://test1.com/testPage";
const s2 = "https://test2.com/testPage?specificParam=1"
const s3 = "https://test3.com/...
1
vote
1
answer
101
views
Change query parameter in @QueryParam in JAX-RS
I'm new to JAX-RS, so I apologize if I'm doing something really off base here. I'm consuming an external API (that I have no control over) that requires you to first send a request to get a list of ...
0
votes
1
answer
68
views
How I can pass the URI as a query param for my Blazor WebAssembly app?
I am creating a Blazor application with .NET 5.0, I need a parameter to be passed when starting the app that is used throughout the app, not just on one page of the app.
That is, while the app is ...
0
votes
1
answer
302
views
How to correctly parse query params from a server redirect to client in RN Expo development mode
I am building a React Native app (currently trying to work with Android) using expo-router (and SupaBase, but I think that is slightly less relevant to the issue).
I created a development build in ...
0
votes
1
answer
132
views
QueryString is empty during ASP.NET Core 8 MVC form post
Note: the answer may be in either VB.NET or C#. I have no preference for this Q&A.
I'm following this example to build a simple ASP.NET Core 8 MVC application that uses cookie authentication. I'm ...
0
votes
1
answer
55
views
Oracle SQL parameter not bounding properly
So my situation simply includes a data source and an Oracle SQL query in ASP.NET.
I have the following data source defined in the aspx.
<asp:SqlDataSource ID="DataSourcePFEP" runat="...
1
vote
1
answer
55
views
Custom WooCommerce Query String to Display Only First 3 Products
I have tried the following URL parameters below, and orderby parameter works fine, displaying all the products sorted by date, but I want only to display the 3 first products (limit parameters doesn't ...
0
votes
1
answer
67
views
webapi core [FromQuery] dto model ignoring [Required(AllowEmptyStrings = true)]
i have a controller endpoint with two parameters
sent from body
sent as a query string parameters with dtoModel
i using [FromQuery] for the second object ,becouse i cannot pass two object in the ...
0
votes
0
answers
23
views
JSON parameters added directly to query string failing
Hopefully a fairly simple request here. I am hitting the following endpoint through Postman:
https://ipacb.ecosphere.fws.gov/location/api/resources
For a different tool, I need the full query string ...
0
votes
2
answers
143
views
Add a list of enum values to a query parameter
For example you have this enum :
public enum MyEnum
{
enum1,
enum2,
enum3,
enum4
}
And you want to pass a IEnumerable<MyEnum> as a query parameter?
I tried this :
var ...