diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2016-06-30 14:43:17 +0200 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2016-06-30 14:43:17 +0200 |
commit | ed6382d02cb8a241234574400a1f6a5a31d87796 (patch) | |
tree | 81b5221cae753297b05bc5090a72d253c1bdccd6 /pdf-over-gui/src/main/java | |
parent | aa8e0f5082cab99a8969da5c07d12d4a5dd06792 (diff) | |
download | pdf-over-ed6382d02cb8a241234574400a1f6a5a31d87796.tar.gz pdf-over-ed6382d02cb8a241234574400a1f6a5a31d87796.tar.bz2 pdf-over-ed6382d02cb8a241234574400a1f6a5a31d87796.zip |
Fix sending SMS during QR code display
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java index 99237204..c0d06b7c 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java @@ -319,16 +319,11 @@ public class ATrustHandler extends MobileBKUHandler { MobileBKUHelper.registerTrustedSocketFactory(); HttpClient client = MobileBKUHelper.getHttpClient(getStatus()); - PostMethod post = new PostMethod(status.getBaseURL() - + "/signature.aspx?sid=" + status.getSessionID()); //$NON-NLS-1$ - post.getParams().setContentCharset("utf-8"); //$NON-NLS-1$ - post.addParameter("__VIEWSTATE", status.getViewstate()); //$NON-NLS-1$ - post.addParameter( - "__EVENTVALIDATION", status.getEventvalidation()); //$NON-NLS-1$ - post.addParameter("__EVENTTARGET", "SmsButton"); //$NON-NLS-1$ //$NON-NLS-2$ - post.addParameter("__EVENTARGUMENT", ""); //$NON-NLS-1$ //$NON-NLS-2$ + GetMethod get = new GetMethod(status.getBaseURL() + + "/sendsms.aspx?sid=" + status.getSessionID()); //$NON-NLS-1$ + get.getParams().setContentCharset("utf-8"); //$NON-NLS-1$ - return executePost(client, post); + return executeGet(client, get); } /** |