summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:09:01 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:09:01 +0000
commit9920295a5270c77ecf5dfed88303651eb869a509 (patch)
treec8d6134247d928355af8242de836789893b62cf6 /pdf-over-gui/src/main/java/at/asit/pdfover
parent1df3e943535aa7a36e31302bf150355483390e66 (diff)
downloadmocca-9920295a5270c77ecf5dfed88303651eb869a509.tar.gz
mocca-9920295a5270c77ecf5dfed88303651eb869a509.tar.bz2
mocca-9920295a5270c77ecf5dfed88303651eb869a509.zip
+ fixed web request encoding for mobile BKU
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@159 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostCredentialsThread.java6
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostTanThread.java2
2 files changed, 6 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostCredentialsThread.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostCredentialsThread.java
index bfb6f66a..a2269d21 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostCredentialsThread.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostCredentialsThread.java
@@ -68,14 +68,18 @@ public class PostCredentialsThread implements Runnable {
client.getParams().setParameter("http.useragent", //$NON-NLS-1$
LocalBKUState.PDF_OVER_USER_AGENT_STRING);
- PostMethod method = new PostMethod(status.getBaseURL() + "/identification.aspx?sid=" + status.getSessionID()); //$NON-NLS-1$
+
+ PostMethod method = new PostMethod(status.getBaseURL() + "/identification.aspx?sid=" + status.getSessionID()); //$NON-NLS-1$
+ method.getParams().setContentCharset("utf-8"); //$NON-NLS-1$
method.addParameter("__VIEWSTATE", status.getViewstate()); //$NON-NLS-1$
method.addParameter("__EVENTVALIDATION", status.getEventvalidation()); //$NON-NLS-1$
method.addParameter("handynummer", status.getPhoneNumber()); //$NON-NLS-1$
method.addParameter("signaturpasswort", status.getMobilePassword()); //$NON-NLS-1$
method.addParameter("Button_Identification", "Identifizieren"); //$NON-NLS-1$ //$NON-NLS-2$
+
+
int returnCode = client.executeMethod(method);
String redirectLocation = null;
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostTanThread.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostTanThread.java
index afe29ccf..22cb6317 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostTanThread.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/PostTanThread.java
@@ -72,7 +72,7 @@ public class PostTanThread implements Runnable {
PostMethod method = new PostMethod(status.getBaseURL()
+ "/signature.aspx?sid=" + status.getSessionID()); //$NON-NLS-1$
-
+ method.getParams().setContentCharset("utf-8"); //$NON-NLS-1$
method.addParameter("__VIEWSTATE", status.getViewstate()); //$NON-NLS-1$
method.addParameter(
"__EVENTVALIDATION", status.getEventvalidation()); //$NON-NLS-1$