tagged [query-string]

Get integer value from malformed query string

Get integer value from malformed query string I'm looking for an way to parse a substring using PHP, and have come across preg_match however I can't seem to work out the rule that I need. I am parsing...

How to decode properly query string which have UTC date format

How to decode properly query string which have UTC date format I am decoding query string which contains date `YYYY-MM-DDThh:mm:ssTZD` (eg `1997-07-16T19:20:30+01:00`) in this format. I have tried fol...

23 Jun at 07:55

REST API Best practices: args in query string vs in request body

REST API Best practices: args in query string vs in request body A REST API can have arguments in several places: 1. In the request body - As part of a json body, or other MIME type 2. In the query st...

28 Mar at 16:46

remove url parameters with javascript or jquery

remove url parameters with javascript or jquery I am trying to use the youtube data api to generate a video playlist. However, the video urls require a format of: but what the api generates is: So wha...

Replace item in querystring

Replace item in querystring I have a URL that also might have a query string part, the query string might be empty or have multiple items. I want to replace one of the items in the query string or add...

21 Apr at 12:12

Encrypt Query String including keys

Encrypt Query String including keys I have an app that is using query string to pass some values around pages. I found few examples on how to encrypt values in query string, but the problem is that my...

22 Jul at 23:39

How do you access the query string in Flask routes?

How do you access the query string in Flask routes? How do you access query parameters or the query string in Flask routes? It's not obvious from the Flask documentation. The example route `/data` bel...

20 Apr at 10:34

How to send JSON instead of a query string with $.ajax?

How to send JSON instead of a query string with $.ajax? Can someone explain in an easy way how to make jQuery send actual JSON instead of a query string? This will in fact convert your carefully prepa...

26 Apr at 00:42

Adding a parameter to the URL with JavaScript

Adding a parameter to the URL with JavaScript In a web application that makes use of AJAX calls, I need to submit a request but add a parameter to the end of the URL, for example: Original URL: > [htt...

Truncating Query String & Returning Clean URL C# ASP.net

Truncating Query String & Returning Clean URL C# ASP.net I would like to take the original URL, truncate the query string parameters, and return a cleaned up version of the URL. I would like it to occ...

27 Jul at 13:12

Does model binding work via query string in asp.net mvc

Does model binding work via query string in asp.net mvc Does model binding work via query string as well ? If I have a get request like : Would the following method in CountryController have its oCoun...

Outputting a manipulated QueryString in C#

Outputting a manipulated QueryString in C# Using the following code I get a nice formatted string: Gives me something like: &hello=world&microsoft=sucks But when I use this code to clone the collectio...

7 Jan at 08:46

How can I delete a query string parameter in JavaScript?

How can I delete a query string parameter in JavaScript? Is there better way to delete a parameter from a query string in a URL string in standard JavaScript other than by using a regular expression? ...

28 Oct at 05:23

How to remove the querystring and get only the URL?

How to remove the querystring and get only the URL? I'm using PHP to build the URL of the current page. Sometimes, URLs in the form of are requested. I want to remove the `?` and everything that follo...

26 Jun at 00:46

Check if non-valued query string exists in url with C#

Check if non-valued query string exists in url with C# I've seen a couple examples of how to check if a query string exists in a url with C#: `www.site.com/index?query=yes` But how would I check a str...

31 Dec at 16:3

Access Query string parameters with no values in ASP.NET

Access Query string parameters with no values in ASP.NET I am trying to set up a page that has two behaviors. I'm separating them by URL: One behavior is accessed via `/some-controller/some-action`, t...

26 Oct at 00:1

Get query string parameters url values with jQuery / Javascript (querystring)

Get query string parameters url values with jQuery / Javascript (querystring) Anyone know of a good way to write a jQuery extension to handle query string parameters? I basically want to extend the jQ...

How to configure the web.config to allow requests of any length

How to configure the web.config to allow requests of any length I am building a site in which i would like to create a file client side from the value of a textarea element. I have the code in place t...

RestTemplate: How to send URL and query parameters together

RestTemplate: How to send URL and query parameters together I am trying to pass path param and query params in a URL but I am getting a weird error. Below is the code. ``` String url = "http://test.co...

Get a list of JSON property names from a class to use in a query string

Get a list of JSON property names from a class to use in a query string If I have a C# model class that is used by JSON.net to bind data from a serialized JSON string, is there a way that I can create...

12 Dec at 18:34

c# extract values from key-value pairs in string

c# extract values from key-value pairs in string i have a string like this: looks like a regular query string yes, but i'm not in any web context now i want to extract the values (after the = sign) by...

27 Jun at 09:52

Split string (path of Uri) based on "/"

Split string (path of Uri) based on "/" Wonder if someone could point me in the right direction. What I'd like to achieve is to split a string based upon it having a '/' in it. For example if I had: w...

1 Jul at 20:52

How do I send a URL with Query Strings as a Query String

How do I send a URL with Query Strings as a Query String I am doing a redirect from one page to another and another redirect from the second page to a third. I have imformation from the first page whi...

3 May at 12:11

Is it possible to get Dictionary from query string?

Is it possible to get Dictionary from query string? My controller method looks like this: Is it possible to call this method and populate "model" using only query string? I mean, typing something like...

28 Mar at 09:3

How to read values from the querystring with ASP.NET Core?

How to read values from the querystring with ASP.NET Core? I'm building one RESTful API using ASP.NET Core MVC and I want to use querystring parameters to specify filtering and paging on a resource th...