5,165 questions
0
votes
1
answer
83
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]...
0
votes
1
answer
85
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
2
answers
95
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: &...
1
vote
2
answers
97
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 ...
0
votes
0
answers
74
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
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/...
-7
votes
1
answer
120
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&...
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
1
answer
63
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
242
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 ...
0
votes
1
answer
38
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: ...
4
votes
1
answer
632
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
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
votes
1
answer
153
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
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
2
answers
112
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 ...
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 &...
0
votes
0
answers
43
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
373
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,...
-1
votes
1
answer
293
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
100
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
35
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(...
1
vote
1
answer
341
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 ...
0
votes
3
answers
140
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
41
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());
$...