I have a problem POSTing data via HTTPS in Java. The server response is the same whether or not I send 'query'. Maybe someone can point out what the problem is...
Thanks!
Main ... |
I have a middlet that sends data to a servlet.
Anyone knows how can I calculate the size of request of the middlet in a servlet ?
I'm tring to sum of request ... |
wow , i just can't find any working httpclient 4.1 example , to send post request with Not default port
but configurable port , i have this code but its dosn't ... |
I want to login to application from java code.
Here is my code...
String httpsURL = "https://www.abcd.com/auth/login/";
String query = "email="+URLEncoder.encode("abc@xyz.com","UTF-8");
query += "&";
query += "password="+URLEncoder.encode("abcd","UTF-8") ;
URL myurl = new URL(httpsURL);
HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-length", ...
|
How can I do a HTTPS (not HTTP) using java.net API. Our web application has some sensitive information that cannot be exposed directly to the user via HTML. When user does a FORM POST, the data is gathered inside a servlet and is clubbed together with the sensitive data and posted again to some different server to gather back the response. ... |
Hey guys Im trying to make a post to a https web site, basically im using the below code to do the http post which works for a http web site but not for a https web site. Can anybody shed some light on my problem as to why it would not work, i suspect due to security certificats or SSL ... |
|
|
|
Hi Guys When I try sending the https post request through the java program String param = "https://abcdefg.com"; URL url = new URL(param); HttpsURLConnection httpConnection = (HttpsURLConnection)url.openConnection(); jrunCookie = httpConnection.getHeaderField("set-cookie"); httpConnection.setUseCaches(false); httpConnection.setRequestProperty("Content-Type","application/x-www-form-urlencoded"); httpConnection.setRequestProperty("referer", param); HttpsURLConnection.setFollowRedirects(false); httpConnection.setInstanceFollowRedirects(false); httpConnection.setDoInput(true); httpConnection.setDoOutput(true); httpConnection.setRequestMethod("POST"); it throws the exception and exception reads as URL is not correct. it should be abcdef.com Could sanyone help me with the ... |
Ya i am not able to connect any https urls, as the request goes through our proxy server and in proxy server https is not enabled. thanks for the help. But can you tell me username and password for authentication should be in encrypted format or not when post the request? if we send the other values as query string(name=nishad) will ... |
Hi, I need an application that performs multiple posts over a https site(an interview flow),in my example the first post gets the desired response......however on the second post i get an error message from the server.What i want to know is(assuming all the post parameters & request headers are correct)Is there an issue with the logic??? Is this how you perform ... |
I need to create a socket and attached a certificate to it. Once I do this, I need to send a https POST request. Below is the code I'm trying to get to work, but when I try to connect to the host I get a UnknownHostException. The exception occurs on this line: httpURLConn.connect(); thanks Dan public class AidapRequest { static ... |
i have setup a MSIIS server on windows XP, iam able to connect to the server by the following program /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.DataOutputStream; import java.io.FileInputStream; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.logging.Level; import java.util.logging.Logger; import javax.net.ssl.HttpsURLConnection; /** * * @author Administrator */ ... |
Hi, I tried to send a POST request which contains user login info, but got anthentication error, I could do GET request using the same URL without problem, so I think it is something wrong with the POST request, could anyone take a look at it? HttpsURLConnection httpConn = null; String urlParameters = "rest_call=login&name=111&auth_key=aMckJJL"; byte[] postData = urlParameters.getBytes(); try { URL ... |
I try to create a dialog for an https client. First of ali I need to authenticate to get the subsequent pages. To authenticate I must retrieve a sessionid from the first screen. So what I try is: ... HttpsURLconnect socket = (HttpsURLconnect)url.openConnect; InputStream in = socket.getInputStream; ... ScreenScraping the HTML socket.setDoOutput(true); OutputStream out = socket.getOutputStream; // to do the POST ... |
|