The part of a URL after the ? (question mark), containing parameter=value pairs separated by & (ampersand). In a request made to a web application at a particular URL, the parameter+value data in the query string is parsed/consumed by the web application on the backend that receives the request.
Questions tagged [query-string]
3924 questions
1
vote
3 answers
Why isn't Ruby on Rails correctly generating the 'notice' HTML?
The embedded ruby code in my view is...
<%= notice %>
but when the URL reads... http://0.0.0.0:3000/projects/3?notice=Project+was+successfully+created the generated HTML is... I'm expecting it to read...
BeachRunnerFred
- 17,150
- 34
- 132
- 231
1
vote
2 answers
How to get value of query string from encoded url using javascript?
I have the following encoded URL string in javascript
var querystring = "http%3A%2F%2Fspsrv%3A1361%2FSitePages%2FCountryManagment%2Easpx%3FCountryId%3D1";
How can I get the value of CountryId from that ?
user6599525
- 245
- 3
- 13
1
vote
1 answer
Getting full URL with PHP on Windows doesn't work
I am trying to build a language switch for a site of mine, but, as the hosting MUST BE a Windows IIS with PHP, I am not able to get the full URL of the page viewed by the visitor.
Say I am on domain.com/page.php?id=23, what I get using the old…
Aptivus
- 423
- 1
- 8
- 21
1
vote
1 answer
URL design technique
My friend designed url tag like : www.aaaa.com/?page=4 in my asp.net mvc2 project, But i want to change my URL like www.aaaa.com/4
so i want to delete ?page tags from my URL.
What can i do ?
Thanks
user476958
- 11
- 1
1
vote
1 answer
Redirect domain.com?query_string=* to domain.com
I have the following url: domain.com/?query_string=some_variable
I need all requests for domain.com/?query_string=* to 301 redirect to domain.com
I have tried with the following:
RewriteCond %{QUERY_STRING} ^query_string=$
RewriteRule (.*) …
user1231561
- 2,879
- 6
- 32
- 49
1
vote
0 answers
How can I remove particular value from query string for e.g Default.aspx?name="my name is abc"
How can I remove particular value from query string for e.g Default.aspx?name="my name is abc"?
I want to remove 'abc' from above query string .
How can I do that??
I just want to show 'my name is' as a output.
Neo
- 13,482
- 47
- 173
- 339
1
vote
1 answer
How to deal with query strings before and after the hash in Angular
I am using Angular v1.4.2
I am currently dealing with a query string that looks like this:
http://localhost/myProject/apply/?A=100&B=ABC&C=Test#/step1?D=3&E=X1&F=1
So that means that A, B and C are declared before the hash
D, E and F are declared…
Nick
- 2,745
- 1
- 27
- 53
1
vote
0 answers
Apache 2.2 RewriteCond on QUERY_STRING to check duplicate keys
I'm desperately looking for a solution to Forbid access when the QUERY_STRING contains the duplicate key config.
In my Apache 2.2 configuration I have 2 VirtualHost:
customerA.mydomain.com and customerB.mydomain.com
In each VirtualHost I redirect…
Tim
- 83
- 1
- 7
1
vote
3 answers
MYSQL: Using GROUP BY with string literals
I have the following table with these columns:
shortName, fullName, ChangelistCount
Is there a way to group them by a string literal within their fullName? The fullname represents file directories, so I would like to display results for certain…
Setheron
- 3,012
- 3
- 29
- 48
1
vote
1 answer
Java how to secure http connection query string URL request passing & getting sensitive data?
The following plain java code is calling some web service API:
String url = "https://my_web_service/some_function?password=my_password";
InputStream is = new URL(url).openStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is,…
michael
- 3,295
- 12
- 44
- 83
1
vote
1 answer
Rewritecond Query String search on subpages
I'm writing to you because of an obstacle i found with .htaccess and Query String. What I need now to achieve is search inside subpages from FORM by GET method. I tried everything found on the internet on yesterday's evening. What partly works…
TosterX
- 11
- 1
1
vote
0 answers
Does Web API 2 support route constraints on query string parameters?
In Web API 2, I can put constraints in the route template; for example:
[Route("api/foos/{id:int}")]
void GetFooWithId(int id, [FromUri] string format = null)
{ ... }
Is there a way to constrain query string parameters, such as format in the above…
stakx - no longer contributing
- 77,057
- 17
- 151
- 248
1
vote
1 answer
Passing a query string via react-router
Hello I am trying to pass information via a query string through react-router but i can not access it. I believe i followed the steps correctly but still nothing.
var UserContainer = React.createClass({
contextTypes: {
router:…
Ayaz Uddin
- 95
- 2
- 13
1
vote
0 answers
Angular2: empty querystring parameters default to "true"
Sometimes my app navigates to a route with empty parameters in the querystring, like this cars.com/search;year=2010;model=;brand=Mazda. But Angular is automatically updating the empty querystring parameters to 'true', changing the URL to read…
Jonathan Cox
- 311
- 6
- 13
1
vote
3 answers
Need to pass a querystring variable in MVC, so i can use it with jquery?
I would like to create this url blah.com/preview?h=yes
so i can do this
<% if request.querystring("h") = "yes" then %>
jquery stuff
<% else %>
don't do jquery stuff
<% end if %>
Roberto
- 11
- 2