Questions tagged [url-encoding]

URL Encoding is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances.

URL Encoding, also known as Percent-encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. Although it is known as URL encoding it is, in fact, used more generally within the main Uniform Resource Identifier (URI) set, which includes both Uniform Resource Locator (URL) and Uniform Resource Name (URN).

As such, it is also used in the preparation of data of the application/x-www-form-urlencoded media type, as is often used in the submission of HTML form data in HTTP requests.

1000 questions
-1
votes
1 answer

Obscure URL to hide sensitive files and prevent bots/scrapers

I am not talking about any .htaccess rewrite rules. I am working on a web app and I want to obscure URLs from bot/scrapers - it should be something like the question asked here. We need to make the URLs obscured like the approach used by Trip…
-1
votes
1 answer

Decode special symbols and white-spaces in Django?

Am working with API using DjangoRestFramework and am registering a user. So during registration email id "example@gmail.com" get encoded to "example%40gmail.com". How do i decode %40 to @.I have tested this API in postman client which is hows…
-1
votes
1 answer

What does this YQL error mean?

Let me ask very short comparative past questions. I got the result from YQL CONSOLE not my terminal. Below is my code. new YQL.exec('select * from html where url="http://fortune.daum.net/external/4/run/star_free/index.php" and…
LKM
  • 2,410
  • 9
  • 28
  • 53
-1
votes
2 answers

How to search for a string with a plus (+) sign using HTML form with MySQL database?

I have a very simple form that allows the user to search for a company name. One of the company names is "A+ Service". How can I build the form to encode the plus (+) sign prior to submitting the form, to allow for the user to input "A+" and find…
JMichael
  • 75
  • 1
  • 11
-1
votes
1 answer

PHP: URL with a quote results in backslash in GET-parameter?

If I enter the URL http://localhost/script.php?a=" into the URL bar of Chrome, where script.php is the following test code: var_dump( $_GET ); print '
'; var_dump( urldecode($_GET['a']) ); die(); The result looks like array(1) { ["a"]=>…
Magnus
  • 17,157
  • 19
  • 104
  • 189
-1
votes
1 answer

Encode a URL for proper characters

I have a URL that looks like below: https://www.xyz.net/test%3Fkey%3Dvalue How do I encode it to look like below: https://www.xyz.net/test?key=value I guess I need to use the URL Encoding techniques or?
joesan
  • 13,963
  • 27
  • 95
  • 232
-1
votes
1 answer

Any reason for URLEncodedUtils.parse return List< NameValuePair >

https://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/client/utils/URLEncodedUtils.html#parse(java.net.URI,%20java.lang.String) why not return Map< String, List< String > > if it returns Map, user can easily query by…
zxshi
  • 357
  • 3
  • 8
-1
votes
1 answer

Unknown encoded string

Do you have any tip on how to decode this string (encode my string to this format)? Seems to be something like base64 combined with... n69k0J0xLSEqh0IFG2ZGgeZwLZ0SuiSe:sO6uELP0yW:S17zihfs6qpW20E7R7U2NTZsXzW1YKYIoEUqBXGvygY5CkKolsoh I hope original…
Anette D.
  • 25
  • 4
-1
votes
1 answer

URL encoding + sign

I have an application with + sign in its name (eg. DB+JSP.jws). I get an error when trying to create connection as java encodes url + with spaces and hence cannot add the connection to DB JSP/../META-INF/connection.xml (File not found…
Ravi
  • 133
  • 10
-2
votes
1 answer

reading a url in PHP that has been encoded in javascript

In Javascript i encode parts of the request parameter like this window.location.href = "search.php?qry=" + encodeURIComponent("m & l"); In my Search.php i reach this like this $url = urldecode($_SERVER['REQUEST_URI']); echo ."Full URL: " .$url…
codeNinja
  • 1,442
  • 3
  • 25
  • 61
-2
votes
2 answers

Decode base64 with white space

I have a base64 encoded string i'm trying to decrypt with go. The string contains white spaces which should be ignored. A sample code I'm trying: s :=…
user3881664
  • 25
  • 1
  • 2
-2
votes
2 answers

how to encode/hide my ip address url in php?

Currently I have a hosting in amazon ec2 instance.Now I want to encode / hide the url ip address bar http://**.***.**.**:80
Nandy
  • 73
  • 7
-2
votes
1 answer

How to use URL for URL encoding?

I am using URL in one format. but when I enter it in Google and when pressed enter it is converting to another format. below is my original URL 'https://translation.googleapis.com/language/translate/v2?q=hai basha.how are …
basha
  • 587
  • 2
  • 6
  • 25
-2
votes
1 answer

Does REST API uses url encoding?

Does RESTful APIs provides url encoding as default or do I have to encode it using other methods? I am using following code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, "xmlRequest="…
NightOwl
  • 329
  • 2
  • 20
-2
votes
1 answer

why can't urlEncoder.encode work like everyone else?

I am having to do stupid s**t like this to get urlEncoding to work like other libraries (iOS, Javascript..) because java.net.URLEncoder is buggy or not written to standard encoding: URLEncoder.encode(normalizeString(str),…
1 2 3
66
67