aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/network
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-06-17 07:13:58 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-06-17 07:13:58 +0200
commit23c04234b6608f6b56a8e5fecf20d9787f116888 (patch)
treee7867d21f82417128ccd88f1d2b8485e52e1dca3 /main/src/cgeo/geocaching/network
parentca2b81fddcd071be8379c94318979634fb91e054 (diff)
parentee17c22f41cff696218c878a0c426d1e7dd85497 (diff)
downloadcgeo-23c04234b6608f6b56a8e5fecf20d9787f116888.zip
cgeo-23c04234b6608f6b56a8e5fecf20d9787f116888.tar.gz
cgeo-23c04234b6608f6b56a8e5fecf20d9787f116888.tar.bz2
Merge branch 'release' into upstream
Conflicts: main/res/values-cs/strings.xml main/res/values/strings.xml
Diffstat (limited to 'main/src/cgeo/geocaching/network')
-rw-r--r--main/src/cgeo/geocaching/network/Network.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/network/Network.java b/main/src/cgeo/geocaching/network/Network.java
index c73dd30..5911146 100644
--- a/main/src/cgeo/geocaching/network/Network.java
+++ b/main/src/cgeo/geocaching/network/Network.java
@@ -136,6 +136,18 @@ public abstract class Network {
}
/**
+ * POST HTTP request
+ *
+ * @param uri the URI to request
+ * @param params the parameters to add to the POST request
+ * @params headers the headers to add to the request
+ * @return the HTTP response, or null in case of an encoding error params
+ */
+ public static HttpResponse postRequest(final String uri, final Parameters params, final Parameters headers) {
+ return request("POST", uri, params, headers, null);
+ }
+
+ /**
* Multipart POST HTTP request
*
* @param uri the URI to request
@@ -173,9 +185,9 @@ public abstract class Network {
* @param uri
* the URI to request
* @param params
- * the parameters to add the the GET request
+ * the parameters to add to the URI
* @param headers
- * the headers to add to the GET request
+ * the headers to add to the request
* @param cacheFile
* the cache file used to cache this query
* @return the HTTP response, or null in case of an encoding error in a POST request arguments