A query string is the part of a URL that contains data to be passed to web applications such as CGI programs.
45
votes
7answers
32k views
What's valid and what's not in a URI query?
Background (question further down)
I've been Googling this back and forth reading RFCs and SO questions trying to crack this, but I still don't got jack.
So I guess we just vote for the "best" ...
0
votes
4answers
48 views
Strange Javascript / jQuery Issue - Assigning and reading values
I've been working with jQuery for going on 2 years now, and I know this is simple, I've done it many times before, but for some reason, I can't seem to get it to work today, so I'm posting here. Here ...
11
votes
3answers
14k views
How to obtain the query string in a GET with Java HttpServer/HttpExchange?
I am trying to create a simple HttpServer in Java to handle GET requests,
but when I try to get the GET parameters for a request I noticed the HttpExchange class does not have a method for that.
Does ...
0
votes
0answers
23 views
.htaccess rewrite rule language subdirectory
I have been looking at Stack Overflow for this question for some days now, but I can't find the right situation.
What I would like is to redirect for example:
http://url.com/en/Home to http://url....
214
votes
21answers
176k views
add or update query string parameter
With javascript how can I add a query string parameter to the url if not present or if it present, update the current value? I am using jquery for my client side development.
0
votes
0answers
9 views
IIS “URL Rewrite” module. Capturing parenthesis in QUERY_STRING?
In IIS "URL Rewrite", I need to keep only the bolded part from below:
http://oursite.org/**press/display/index.html?item=P1324**&garbage_1=this&garbage_2=that
So I have a "Pattern" of:
(...
27
votes
3answers
31k views
In Go's http package, how do I get the query string on a POST request?
I'm using the httppackage from Go to deal with POST request. How can I access and parse the content of the query string from the Requestobject ? I can't find the answer from the official documentation....
2
votes
3answers
62 views
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 that returns a collection.
In that case, I need to read the ...
1
vote
0answers
8 views
How to get Chrome and Safari to accept query strings on blobs? [duplicate]
I've been doing some testing with creating blobs and referencing them for user generated scripts because it makes debugging a lot easier, but I've recently found that while this solution has been very ...
7
votes
6answers
9k views
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: www.site.com/course/123456/216 in code (c#...
48
votes
18answers
183k views
Passing multiple values for a single parameter in Reporting Services
I have several Multi-Select parameters in my report. I am trying to find a way to pass in multiple values for a single parameter in the web query string? If I pass in a single value, it works fine.
...
2
votes
2answers
54 views
How to create keyless URL parameters in ASP.NET
I have seen this answer describing ASP.NET support for keyless (not valueless) parameters, like http://some.url?param1¶m2, and confirmed them to be viewable on Request.QueryString like:
var ...
0
votes
1answer
42 views
Return null and not null values
I have two tables, one for customers and another one for nationalities, not all customers table have nationality assigned to them they just Null, and the rest assigned to them their nationality, my ...
0
votes
2answers
587 views
What is the difference between URL parameters and query strings?
I don't see much of a difference between the parameters and the query strings, in the URL. So what is the difference and when should one be used over the over?
0
votes
1answer
27 views
Sending nested object via post request
I'm running this little node express server, which is supposed to check if the voucher is valid later and then send an answer back to the client
this is my code
app.post('/voucher', function (...
0
votes
2answers
29 views
URL Query String to select content
I have a number of pages with lessons listed like this:
<div class="et_pb_module">Page Title</div>
<div class="insert-after"></div>
<div class="lesson-container">
<...
0
votes
1answer
27 views
Unable to receive parameter in query string when redirected to other page
Hi I am developing one application in java-script. I have two pages default.aspx and addnewitem.aspx. there is one html table in default.aspx and one button. When i click on button i want to redirect ...
228
votes
12answers
242k views
Parse query string in JavaScript [duplicate]
Possible Duplicate:
How can I get query string values?
I need to parse the query string www.mysite.com/default.aspx?dest=aboutus.aspx.
How do I get the dest variable in JavaScript?
0
votes
1answer
39 views
Create script tag with query string
I'm adding scripts to my index.html file dynamicly, when adding the scripts I also want to add a query string containing the file version.
for this I've done this
var src = 'app/core.js?201701051511'...
1
vote
1answer
28 views
Rewrite rules with query-string for multiple URLs
I would like to redirect all URLs as follows
http://domain.com/?s=25 ...> http://domain.com/s=25.html
For each URL I can do the folowing:
RewriteCond %{QUERY_STRING} (^|&)s\=25($|&)
...
-1
votes
0answers
44 views
scrapy: scraping query string parameters from URL generated by javascript
I would like to use Scrapy to capture information from a request generated by a javascript present on the page I am initially crawling. This javascript generates a hit with a long query string ...
124
votes
14answers
226k views
Change URL parameters
I have this URL:
site.fwx?position=1&archiveid=5000&columns=5&rows=20&sorting=ModifiedTimeAsc
what I need is to be able to change the 'rows' url param value to something i specify, ...
225
votes
12answers
223k views
Elasticsearch query to return all records
I have a small database in Elasticsearch and for testing purposes would like to pull all records back. I am attempting to use a URL of the form...
http://localhost:9200/foo/_search?pretty=true&q=...
14
votes
3answers
4k views
MV3 Duplicate Query String Values for CheckBox (true,false for boolean)
I've created a fairly straight forward page with a check box:
@using (Html.BeginForm("MyController", "MyAction", FormMethod.Get))
{
@Html.CheckBoxFor(x => x.MyCheckBox)
<input type="submit" ...
1092
votes
10answers
349k views
When are you supposed to use escape instead of encodeURI / encodeURIComponent?
When encoding a query string to be sent to a web server - when do you use escape() and when do you use encodeURI() or encodeURIComponent():
Use escape:
escape("% +&=");
OR
use encodeURI() / ...
-3
votes
1answer
40 views
Url rewriting in php with multiple query string variables using .htacces
I have dynamic pages in php like:
http://www.example.com/page.php?tokenid=1&tokenname=About Us
I want to remove this part:
.php?tokenid=1&tokenname=About Us
page extension with query ...
0
votes
0answers
6 views
Is using a line feed/newline character safe for delimiting a list of values in a query string param?
In building out an API GET endpoint, I would like for consumers of the API to send a series of names (basically an array) for a query param, delimited by the line feed character (and carriage return, ...
0
votes
1answer
22 views
wp paginate_links and query vars not working Wordpress
I am trying to make custom query integrated with a plugin to sort posts.
Here's the code.
index.php
$view =$_GET["sort"];
if($view == "views"){
if ( have_posts() ) :
$paged = ( get_query_var('...
0
votes
6answers
44 views
How can I stringify output from a for loop?
I have the following for loop and I would like the output of the loop to be stringified into a query string as shown in the desired output below. I'm using the qs npm package for stringifying URLs.
...
16
votes
6answers
59k views
ASP.Net URLEncode Ampersand for use in Query String
I need to redirect to a url passing a parameter as a query string.
This can include an Ampersand in the value. such as
string value = "This & That";
Response.Redirect("http://www.example.com/?...
2
votes
4answers
9k views
javascript Request.QueryString
How do I request querystring using javascript from URL
e.g : MySite/lang_en/tabid_3381/default.aspx">http://localhost:1247/portal/alias_MySite/lang_en/tabid_3381/default.aspx
I want to get tabid...
(...
3
votes
1answer
31 views
Only use $in operator if a certain condition is met - Mongoose
Okay so this is probably just me being stupid and not having looked through the MongoDB docs properly but anyway here's the deal:
I have a RESTful API route which looks like this:
GET /api/users?ids[...
1
vote
1answer
44 views
How do I send a javascript object in a querystring?
I want to send this javascript object in a query string so that I can use it as an object when received by the server. Currently, I am using an xhr request:
const xhr = new XMLHttpRequest();
...
-1
votes
0answers
22 views
PHP Decode Query string with \u003d [duplicate]
There is an application that is making a POST call to my app and it is encoding the body like such:
param1\u003dPARAM1\u0026param2\u003dPARAM2\u0026param3\u003dPARAM3
I need to decode this in such a ...
0
votes
2answers
869 views
Redirect to 404 if query string contains anything
Despite searching extensively I cannot seem to find an answer, so I apologise if this has been asked before and I've simply missed it.
I have a site with only static URIs, all SEO friendly, hard-...
0
votes
1answer
587 views
How can we retrieve query string information in a ClickOnce Application?
I made a .NET Windows Forms application that I want to deploy using ClickOnce. However, I will need the application to retrieve the query string parameters passed to it.
I found this MSDN ...
0
votes
0answers
11 views
how to setparameter correctly in EJB using javax.persistence.Query
I received an error from this code:
Query query = em.createNamedQuery("select a from Account a where (a.accname like '%:accname%') or (a.code like '%:accname%')");
query.setParameter("accname", "a");
...
0
votes
2answers
456 views
Reconstruct String for Stored Procedure Oracle
In a view i under the SOURCE column I have the following values.
SRC - TERM - randomtext - LOCATION (Just a FYI on the format of the source column)
ABC DE RANDOMJIBBERISH MORE RANDOMJIBBERISH ...
0
votes
1answer
17 views
Elasticsearch Query String with shingle filter not working
I have problem with shingle filter.
My setting shingle below:
"filter_shingle": {
"type": "shingle",
"min_shingle_size": 2,
"max_shingle_size": 3,
"output_unigrams": ...
0
votes
0answers
13 views
URL Rewrite redirect with query string with single parameter and rewriteMap
I have this configuration in my web.config for a permanent redirect of Url with a single parameter "idnotizia"
<rule name="SignupRedirect18" stopProcessing="true">
<match url="^notizie\.asp$"...
0
votes
0answers
30 views
How to remove query string variable from url using htaccess
my website has dynamic pages such as
http://www.example.com/index.php?layout=category&category_name=shoes&subcategory_name=sport
I want to remove or hide query string variable from url and ...
63
votes
5answers
184k views
Get query string parameters with jQuery
Anyone know of a good way to write a jQuery extension to handle query string parameters? I basically want to extend the jQuery magic ($) function so I can do something like this:
$('?search').val();
...
3
votes
1answer
30 views
Check if Querystrings are not visible on url
I have this code to check if query strings are present and echo contents based on the values.
The code is working if:
www.mywebsite.com/?position=&category=&country=
www.mywebsite.com/?...
0
votes
2answers
429 views
Invoke htm file with query string in browser from C# issue
We are trying to open a htm file in a firefox browser from a C# console app. The htm file is supposed to take the name of a video file as a query string parameter so that the file can be played back ...
0
votes
3answers
59 views
Different behavior when space is encoded as + and %20 in a URL
Pages with spaces in the URL don't get correctly translated:
i.e.
http://www.streetinsider.com/Press Releases/National Trends Reflected in Plano Housing Market/9778767.html
or
http://www....
115
votes
6answers
111k views
URLs and plus signs
I am aware that a + in the query string of a URL represents a space. Is this also the case outside of the query string region? That is to say, does the following URL:
http://a.com/a+b/c
actually ...
0
votes
0answers
12 views
IIS url rewrite to query string
My incoming example (non-existing) url is http://example.com/image-134-small.jpg. When this request reaches IIS, I want it to be internally rewritten to http://example.com/image-134.jpg?maxwidth=160 ...
4
votes
2answers
2k views
How to perform full text search on number fields in ElasticSearch?
Question:
Without converting a number field to a string, how can I perform a full text search on it?
I'm trying mimic the behavior of _all to dynamically convert a number field to a string when ...
0
votes
1answer
22 views
Use ? in URL rewriting
htaccess which is working fine..
RewriteEngine On
RewriteRule ^(css|images|js|jquery|highslide) - [L]
RewriteRule ^products/(.*)/(.*)/([0-9])$ products.php?ac=viewProduct&id=$3&cid=0 [L]
...
0
votes
4answers
4k views
How to pass QueryString in anchor tag to edit User profile?
I am working on a web based application. In this application when user click to EditProfile then he/she would be redirected to CPUserMaster.Aspx page with his stored values. How could i pass the ...