Added URLDecoder class (Unicode not supported)

This commit is contained in:
Ziver Koc 2015-12-11 14:37:25 +01:00
parent 29e684e117
commit bf235694eb
4 changed files with 75 additions and 1 deletions

View file

@ -24,6 +24,8 @@
package zutil.net.http;
import zutil.parser.URLDecoder;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.HashMap;
@ -49,7 +51,7 @@ public class HttpHeaderParser {
private HashMap<String, String> cookies;
/**
* Parses the HTTP header information from the stream
* Parses the HTTP header information from a stream
*
* @param in is the stream
* @throws IOException
@ -147,6 +149,7 @@ public class HttpHeaderParser {
*/
public static void parseURLParameters(String attributes, HashMap<String, String> map){
String[] tmp;
attributes = URLDecoder.decode(attributes);
// get the variables
String[] data = andPattern.split( attributes );
for(String element : data){