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
-2
votes
3 answers

Java RLE upgrade algorithm

example if i have an input like: Heeeeeeeeeeeellooooo the output have to be: H9e3e2l5o This is the code that I wrote so far: public class RLE { public static String encode(String s) { if (s == "" || s == null) return…
-2
votes
1 answer

Decoding URL-encoded GET parameters

While intercepting traffic of an app I got this GET APIs, but I don't know how to decode them so that they look like what they actually…
-2
votes
1 answer

URLEncoder for integer value

int a=50; How do I encode this using URLEncoder? For strings we do String value=URLEncoder.encoder("SomeStringValye",this.encoding);
suman joshi
  • 33
  • 2
  • 8
-2
votes
2 answers

Encoding just arabic part in Url Not all Url

I have this link: http://www.example.com?p=عنوان مقال اخبار I want to encode url without damage it so I need to urlencoding arabic part form url => "عنوان مقال اخبار" NOT all url Example: url will become after…
Ayman Hussein
  • 3,817
  • 7
  • 28
  • 48
-2
votes
1 answer

How is following HTTP url string parameter encoded and decoded? &=& vs &&

I was going through some website and stumbled upon following bug in it, while playing with different combinations for url parameters. When I append ?&=& to any valid url on this website I get following error: /p is part of url…
-2
votes
2 answers

Why can't I use "%20" in a string?

I use a function that I found in this question, adapted to replace all spaces with "%20" (probably could be done far more efficiently!): ## Heading ##std::string Main::SpacesForWeb(std::string text) { for (std::string::iterator it =…
anon
-2
votes
1 answer

what is url double escaping?

I am looking to double escape a url string in java. I don't know what is meant by double escaping a url. I also request some one to post sample java code that I can use to do this. thank you.
-3
votes
1 answer

How to encode whitespaces as '+' in the url using urllib3?

I'm using urllib3 on Python 2.7. I need to send a request to a website that gives the desired response only when the spaces are separated by '+' and not by '%2b'. http = urllib3.PoolManager() var = 'foo bar' url = 'https://foo.com/release?q=' +…
hitro
  • 5
  • 2
-3
votes
1 answer

UnsupportedEncodingException issue

I'm trying to create a link with URLEncoder but I obtain the UnsupportedEncodingException and I don't know why? String param1="a"; String param2="b"; String key="key"; String h="h"; public static void main(String[]args){ try { …
Rubberino
  • 1
  • 1
-3
votes
2 answers

Contents from url to string

NSString *urlAddress = [NSString stringWithFormat:@"http://www.domain.com?input=%@",[alertView textFieldAtIndex:0].text]; NSURL *myUrl = [NSURL URLWithString:[urlAddress stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSString…
Berendschot
  • 3,026
  • 1
  • 21
  • 43
1 2 3
66
67