Re: Hiding destination URL in httpconnection request
[email protected] Wed, 4 Jun 2008 07:40:45 PDT
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <14577198.404871212590489731.JavaMail.tomcat@sdcst12.sjc.collab.net> |
Beat me to the answer Terrence. :) However as a side note, if you are using an URL of http://www.domain.com/myapp?parm=x&parm2=y and what you want is to not show the parms then you can POST these values instead of passing them in on the initial request URL. As Terrence pointed out it's a security thing where the user needs to know the domain they are being asked to approve. Now if you have control over the server, and just really truly must hide as much of it as possible, then you can setup a socket connection and write your own HTTP protocol library. (honestly if you know the basics of it, it really isn't that tough, at least 1.0, IMHO) Then open the socket to the server and the alert will only show the domain. In the socket request following the HTTP protocol you will write a line like: GET /index.html HTTP/1.1 Then there are a bunch other headers you have to set, plus your parms, and then all the user will see is the domain in the connection request. Issues with this are that you can't use the normal http sockets unless you have a signed MIDlet such as 80,8080, 8443, 443, etc.. Regards, -Shawn [Message sent by forum member 'sfitzjava' (sfitzjava)] http://forums.java.net/jive/thread.jspa?messageID=278248 =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff KVM-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".