hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-httpclient Wiki] Update of "FrequentlyAskedApplicationDesignQuestions" by RolandWeber
Date Sun, 17 Dec 2006 10:17:46 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-httpclient Wiki" for change
notification.

The following page has been changed by RolandWeber:
http://wiki.apache.org/jakarta-httpclient/FrequentlyAskedApplicationDesignQuestions

The comment on the change is:
fixed information about query string escaping

------------------------------------------------------------------------------
  only way to send parameters with a GET method.
  (Unless your application encodes parameters into the URL path.)
  
- Query strings works only for string values. Special characters
+ Query strings work only for string values. Each space character needs to
- like = & % and the space character need to be escaped as
+ be replaced by a + character. Special characters like = & % + need to be
- a % character followed by two hex digits specifying
+ escaped as a % character followed by two hex digits specifying
  the ASCII value of the character.
- The encoding of special characters is automatically handled for example
- by the [http://java.sun.com/j2se/1.5.0/docs/api/java/net/URI.html#URI(java.lang.String,%20java.lang.String,%20java.lang.String,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String)
java.net.URI]
+ This encoding is automatically handled for example by the [http://java.sun.com/j2se/1.5.0/docs/api/java/net/URI.html#URI(java.lang.String,%20java.lang.String,%20java.lang.String,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String)
java.net.URI]
  and [http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/URI.html#setRawQuery(char%5b%5d)
org.apache.commons.httpclient.URI] classes.
  URLs are confined to using ASCII characters exclusively. Only ASCII values
  can reliably be transferred in a query string. However, some browsers
@@ -69, +68 @@

  
  On the server, name/value pairs sent in a query string are available
  as parameters of the [http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html#getParameter(java.lang.String)
ServletRequest].
- %xx escape sequences are automatically decoded by the Servlet API.
+ %xx escape sequences and + characters are automatically decoded by the Servlet API.
  If non-ASCII values are sent in the query string, the outcome depends
  on the implementation of the Servlet API and possibly also on
  configuration parameters, such as the JVM default character set.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message