Questions tagged [url-parameters]

URL Parameters are parameters whose values are set dynamically in a page’s URL, and can be accessed by its template and its data sources. This makes pages incredibly dynamic, enabling a single page to power an endless number of views.

The URL points to a web page. The URL may contain a static path, such as:

http://www.myStore/womens/Clothing.jsp

As is the case with any URL, you can append dynamic parameters that are used by the page located by the URL to the URL itself. At runtime, those dynamic parameters are replaced by property values, then passed to the page. For example:

http://www.myStore/womens/Clothing.jsp?type=$itemType&name=$displayName

The type parameter is replaced with the item’s item type and the name parameter is replaced by the item’s display name.

1203 questions
73
votes
1 answer

Username and password in https url

Consider the URL: https://foo:password@example.com Does the username/password portion in the above example qualify as a "URL parameter", as defined in this question?
jefflunt
  • 33,527
  • 7
  • 88
  • 126
57
votes
5 answers

Decoding URL parameters with JavaScript

This should be a simple task, but I can't seem to find a solution. I have a basic string that is being passed through as a query string parameter like this one: This+is+a+message+with+spaces. I would like to decode that parameter using JavaScript to…
user852367
  • 1,000
  • 1
  • 9
  • 15
49
votes
1 answer

What are the URL parameters? (element at position #3 in urlparse result)

I've taken a look to urlparse.urlparse method documentation and I'm a little bit confused about what is the parameters part (not to be confused with the more familiar query part, that is what goes after the question mark and before the fragment…
fortran
  • 74,053
  • 25
  • 135
  • 175
46
votes
1 answer

StandardCharsets.UTF_8 on lower API lower than 19

I'm using this code to get scandinavian characters posted to php correctly. Issue here is that StandardCharsets.UTF_8 is not supported before API 19 byte[] postData = urlParameters.getBytes(StandardCharsets.UTF_8); DataOutputStream wr = new…
EspeH
  • 1,308
  • 2
  • 16
  • 34
37
votes
8 answers

How to use a PHP switch statement to check if a string contains a word (but can also contain others)?

I'm using a PHP switch to include certain files based on the incoming keywords passed in a parameter of the page's URL. The URL, for example, could be: ...page.php?kw=citroen%20berlingo%20keywords Inside the page, I'd like to use something like…
sebastian
  • 383
  • 1
  • 4
  • 7
31
votes
4 answers

Back button of Google Chrome after clicking a hyperlink whose target is on the same PDF document

PDF documents have hyperlinks to the contents on the same document (analogous to "#section" hrefs for an HTML document). Where's the back button to go back to the page I was on (where I clicked the hyperlink). Let's say I'm on the index of a PDF…
Ruut
  • 1,091
  • 1
  • 16
  • 29
28
votes
5 answers

Pass Hidden parameters using response.sendRedirect()

How would I pass hidden parameters? I want to call a page (test.jsp) but also pass 2 hidden parameters like a post. response.sendRedirect("/content/test.jsp");
Ashish Anand
  • 3,531
  • 6
  • 34
  • 45
27
votes
4 answers

Params field is empty in $router.push

Consider this: this.$root.$router.push({ path: '/dashboard', params: { errors: 'error' }, query: { test: 'test' } }) I use this in my component to redirect to another URL, and some error has occured. The problem is that when I want to…
Jozef Cipa
  • 2,133
  • 3
  • 15
  • 29
26
votes
4 answers

Send list/array as parameter with jQuery getJson

I have the following where I'm trying to send list/array to MVC controller method: var id = []; var inStock = []; $table.find('tbody>tr').each(function() { id.push($(this).find('.id').text()); …
fearofawhackplanet
  • 52,166
  • 53
  • 160
  • 253
26
votes
2 answers

How to get the request parameters using get in Spark Java framework?

I'm new to sparkjava. I want to read my request params using spark java but I'm not able to find the correct syntax. please help me out. Below is my route method and the client call to it: my client request…
anup kumar agarwal
  • 263
  • 1
  • 3
  • 6
24
votes
6 answers

How to remove empty query params using URLSearchParams?

I was working with query params, and got introduced to URLSearchParams. I am using it to form this kind of object to query, const x = { a: 'hello World' b: 23 c: '' } let params = new URLSearchParams(x); console.log(params.toString()) //…
ezio4df
  • 3,541
  • 6
  • 16
  • 31
23
votes
6 answers

Thymeleaf: add parameter to current url

I'm at http://example.com/some/page?p1=11 and I want to add a parameter to current url without having to redefine it: http://example.com/some/page?p1=11&p2=32 with something like: Click here but the above code return…
Andrea
  • 15,900
  • 18
  • 65
  • 84
23
votes
1 answer

Multiple parameters in URL fragment

Is there a standard format that allows for multiple parameters to be specified in the URI fragment? (the part after the hash #, not the query string.) The most related information would be this question: Multiple fragment identifiers correct in…
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
21
votes
5 answers

asp.net core JWT in uri query parameter?

I have an api that is protected by JWT and Authorize attribute and at the client I use jquery ajax call to deal with it. This works fine, however I now need to be able to secure downloading of files so I can't set a header Bearer value, can it be…
JohnC
  • 3,938
  • 7
  • 41
  • 48
20
votes
5 answers

Using duplicate parameters in a URL

We are building an API in-house and often are passing a parameter with multiple values. They use: mysite.com?id=1&id=2&id=3 Instead of: mysite.com?id=1,2,3 I favor the second approach but I was curious if it was actually incorrect to do the first?
Justin
  • 26,443
  • 16
  • 111
  • 128
1
2
3
80 81