Sending prixy username and pass

this code works fine without a proxy, however i can figuer out how to get it to work when behind a proxy, i tried some different things to pass the proxy username and password(the commented out code) but those did work, can anyone help with this? cause im lost as to how to send the proxy credentials to get outside to the net
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import javax.swing.*;
import javax.swing.event.*;
public class ReadServerFile extends JFrame {
private JTextField enter;
private JEditorPane contents;
public ReadServerFile(){
super ("Rage");
System.getProperties().put("proxySet","true");
System.getProperties().put("proxyPort","80");
System.getProperties().put("proxyHost","90.8.0.5");
//need to set the username and password
//System.setProperty("http.proxyUser","sservices/proglab30");
//System.setProperty("http.proxyPassword","proglab30");
//Authenticator.setDefault(new Authenticator()
// protected PasswordAuthentication getPasswordAuthentication()
//   return new PasswordAuthentication("proglab30","proglab30".toCharArray());
Container c = getContentPane();
enter = new JTextField("http://www.google.com/");
enter.addActionListener(new ActionListener()
{public void actionPerformed (ActionEvent e)
{getThePage(e.getActionCommand());}});
c.add( enter, BorderLayout.NORTH);
contents = new JEditorPane();
contents.setEditable(false);
contents.addHyperlinkListener(
new HyperlinkListener(){
public void hyperlinkUpdate(HyperlinkEvent e)
    if (e.getEventType()==
    HyperlinkEvent.EventType.ACTIVATED)
    getThePage(e.getURL().toString());}});
c.add(new JScrollPane(contents), BorderLayout.CENTER);
setSize(400,300);
show();
private void getThePage(String location)
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
try {
contents.setPage(location);
enter.setText(location);
catch(IOException io)
  JOptionPane.showMessageDialog(this,"Error getting URL","Bad URL",JOptionPane.ERROR_MESSAGE);
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
public static void main (String args[])
  ReadServerFile app= new ReadServerFile();
  app.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e)
      System.exit(0);
}

hi
Here is an example of a typical WEB.SHOW_DOCUMENT call with a hard-coded URL:
WEB.SHOW_DOCUMENT ('http://www.oracle.com', '_blank');
Here is an example of a WEB.SHOW_DOCUMENT call with a hard-coded URL, but
launched with Java Script. The resulting browser will have its menu,
toolbar, and status bar hidden:
WEB.SHOW_DOCUMENT ('javascript:window.open("'TARGET=_blank>
http://www.startwithoracle.com","", "fullscreen=no,titlebar=no,location=no,
toolbar=no,menubar=no, status=no,resizable=yes");self.close()','_blank');
Here is an example of a WEB.SHOW_DOCUMENT call which uses a variable t
o create the URL. It will be launched with Java Script and the resulting
browser will have its menu, toolbar, and status bar hidden:
Declare
v_URLin varchar2(255);
v_URLout varchar2(255);
Begin
v_URLin := :block.item;
v_URLout := 'javascript:window.open("'|| v_URLin || '","","fullscreen=no,
titlebar=no,location=no,toolbar=no,menubar=no, status=no, resizable=yes");self.close()';
WEB.SHOW_DOCUMENT (v_URLout, '_blank');
End;
Rizwan

Similar Messages

  • How do i send the username and password to yahoo web page through url

    how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...

    If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.

  • Were do i go on pc to find username and pass for network server?

    i'm trying to network my pc and mac.
    i'm able to login on pc to access mac files but
    i dont know were to find username and pass of my pc so as to login from mac into my pc.
    i know the pass and user on the mac is under  system preferences (user&group)
    if figured on the pc it would be under user accounts?
    i tried the admin name and pass with no luck.

      You may no have one. It is possible to set up a PC without a password.
      If this is the case you will need to set a password on your account, or set up a new account with a password.
    http://pcsupport.about.com/od/windows7/ht/create-password-windows-7.htm  
    Bill

  • I changed my AOL password!  Now I can't send photos on iPhoto. It says can't recognize username and pass word. Any advice?

    I changed my AOL Password. Now I can't send photos on iPhoto   It can't recognize the username and password. Any advice?

    What version of iPhoto and of the OS?
    For iphoto '11
    in the iPhoto preferences ==> accounts delete your e-mail account and reenter it
    OR
    IMHO the better solution is to set Apple mail as the email client in the iPhoto preferences
    LN

  • Sending an username and a password with SSL but without Authentication

    Hi,
    I've read several threads about this topic but I'm still confused. I need to send a login and a password in a more or less secure way (not sending it in the get/post and not using a base64 encoding), but I don't want authentication, just to send the info from the browser to the server without everyone in a firewall/proxy being able to read it. I don't want the popup window annoying the user. Buying a certificate from a certification entity would be the last option.
    Could anyone confirm that is impossible to do without including the authentication?
    Thanks in advance,
    - Juan

    HTTP Authentication works via a glorified GET anyway.
    You can only (generally) send stuff via GET or POST.
    SSL encryption takes place outside (or around) the request and response of HTTP, so using an https URL to a server that supports it will make sure that the data in the request including the name & password are encrypted.
    I don't want the popup window annoying the user. Not that you need a popup... a simple form would do, but you need to get the username from the user somehow. You can't get it from the browser otherwise.
    A certificate is not normally needed on the client side, but it is needed on the server.

  • Is iCloud username and pass the same as my apple ID and pass? I keep getting username or password incorrect for Icloud

    Is my iCloud username and password the same as my apple id and pass?  I keep getting username or password incorrect when trying to use I loud email

    The password is the same, the mail address has to be an iCloud address (Mac, Me or iCloud) which may or may not be the same as the address you use to log into iCloud.

  • Airport Express +WPA2 Enterprise, no place to enter username and pass for auth...

    Airport Express version 7.6
    Airport Utility 5.5.3
    I want to use the Airport Express simply to bridge an Ethernet connection to wireless using WPA 2 Enterprise (Wireless network uses RADIUS authentication)
    Wireless mode is set to "Join a wireless network"
    Wireless Security is set to "WPA/WPA2 Enterprise"
    Problem is that there is no place that I can find to enter the username and password for the Enterprise security.
    Thanks

    Airport Express version 7.6
    Airport Utility 5.5.3
    I want to use the Airport Express simply to bridge an Ethernet connection to wireless using WPA 2 Enterprise (Wireless network uses RADIUS authentication)
    Wireless mode is set to "Join a wireless network"
    Wireless Security is set to "WPA/WPA2 Enterprise"
    Problem is that there is no place that I can find to enter the username and password for the Enterprise security.
    Thanks

  • Username and Pass in Addressbar

    Hi,
    How should I hide or mask the Username/Password in the Addressbar when running Web reports?
    [email protected]

    hi
    Here is an example of a typical WEB.SHOW_DOCUMENT call with a hard-coded URL:
    WEB.SHOW_DOCUMENT ('http://www.oracle.com', '_blank');
    Here is an example of a WEB.SHOW_DOCUMENT call with a hard-coded URL, but
    launched with Java Script. The resulting browser will have its menu,
    toolbar, and status bar hidden:
    WEB.SHOW_DOCUMENT ('javascript:window.open("'TARGET=_blank>
    http://www.startwithoracle.com","", "fullscreen=no,titlebar=no,location=no,
    toolbar=no,menubar=no, status=no,resizable=yes");self.close()','_blank');
    Here is an example of a WEB.SHOW_DOCUMENT call which uses a variable t
    o create the URL. It will be launched with Java Script and the resulting
    browser will have its menu, toolbar, and status bar hidden:
    Declare
    v_URLin varchar2(255);
    v_URLout varchar2(255);
    Begin
    v_URLin := :block.item;
    v_URLout := 'javascript:window.open("'|| v_URLin || '","","fullscreen=no,
    titlebar=no,location=no,toolbar=no,menubar=no, status=no, resizable=yes");self.close()';
    WEB.SHOW_DOCUMENT (v_URLout, '_blank');
    End;
    Rizwan

  • Imessages failed to activate because the username and pass do not match?

    1- Changed the pass still did not work
    2-Created an apple id I could not activate
    3-I try to use the alternate apple id still no use
    4-I created an apple id from the imessages and it worked, then I turned it off and on, and when I try to activate no use
    5-I  used an apple id of a friend and it worked, I changed the pass and it still worked

    We should take a look at the log files to see what's really going on but if you haven't done anything with the installation yet then "reinstalling" is very easy.
    In the directory where you launched the jar file, you should find a directory named "crx-quickstart". Simply rename this directory to "crx-quickstart.old" and restart the jar file. Your new environment will be ready in a couple of minutes.  Keep the old directory and look into the [your directory]\crx-quickstart\logs directory for details on your original problem.

  • Sending a Username and Password

    I am using a URL object to get web pages. I use URL.get**Stream() to communicate with the server. I am trying to access a page on www.neopets.com that requires you to have logged in previously. How do I access the page? It would be best it it uses the URL object, but it doesn't have to.

    URLs are fine, but it's not the URL that has that information, usually. I would first suggest you familiarize yourself with the details of HTTP first. That being said, the way it would work really depends on the server. There are different authentication schemes, including (but not limited to) HTTP Basic Authentication, using cookies to keep track of sessions, etc. So I you need to know what the server that you want to connect to is using before you can be sure what you need to do. But either way, the request headers for all future requests after a successful login would need to include something (cookie, basic auth headers, etc.) to get the next page.

  • How to send username and password to XISOAPAdapter

    Hi,
    Can someone please provide a sample piece of source code showing how I can invoke the SOAP Adapter, sending an XML payload and also pass the username and password?
    Many thanks
    Brian

    Hi Peter,
    You're correct. We actually have a mobile c# client running on smartphones (some Pocket PC 2003, some Windows Mobile 5 and now Windows Mobile 6). We are attempting to convert from Business Connector to PI.
    Because of scalability issues with SAP Web Dispatcher we are not using it, but instead we are going PDA <-> Microsoft ISA Server (using Active Directory cert authentication) <-> PI <-> ECC
    So we need to provide a client Certificate for ISA but also username/password for XI SOAP Adapter
    The problem is there seems to be limitations in the mobile c# SSL capabilities so we are trying to understand whether there is some way to send the username and password as header variables.
    thanks
    Brian

  • Passing portal username and password as parameters in URL iview.

    Hi Gurus,
    i Have Created URL iView. i want to send the Username and password of portal to this url ,
    how can i access the portal username and password.
    Note: tried with j_user and j_password
    Regards
    K Naveen Kishore

    Hi,
    Jigar Oza
    Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
    now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user  logged in automatically when he logged into portal.
    there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
    did i do any thing wrong in creating HTTP system or URL iView,
    what are the necessary properties should be given.
    replys are highly appreciated.
    Regards
    K Naveen Kishore

  • JDev WS proxy not sending username and password

    Hi all, I've created a short web service which requires username authentication and testing it on the browser, the web service works fine.
    I then tried to create a web proxy (which is the new term for Web Service Stub in JDeveloper Studio Edition 10.1.3.0.4 right?) which calls this web service with username authentication.
    In the stub code, I added the following lines:
        public static void main(String[] args) {
            try {
                com.maxwell.secure.CreditServiceSoapHttpPortClient myPort = new com.maxwell.secure.CreditServiceSoapHttpPortClient();
                System.out.println("calling " + myPort.getEndpoint());
                // Add your own code here
                myPort.setUsername("tester");
                myPort.setPassword("***");
                myPort.getDetails("tester");
            } catch (Exception ex) {
                ex.printStackTrace();
        }where setUsername and setPassword are auto-generated by JDev.
    However, I still get the error:
          javax.xml.rpc.soap.SOAPFaultException: policy requires authentication tokenand when I turn on the HTTP analyser, I noticed that the stub didn't send the username and password along in its SOAP request
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://secure.maxwell.com/">
       <env:Header>
          <wsse:Security
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:mustUnderstand="1"/>
       </env:Header>
       <env:Body>
          <ns0:getDetails>
             <param0>tester</param0>
          </ns0:getDetails>
       </env:Body>
    </env:Envelope>Can anyone help?

    Hi,
    I can get username/pwd working in 2 ways.
    First option
    1. On the service, do not generate any of the security settings (ie do not use the Secure Web Service option)
    2. Deploy to OC4J
    3. Go in to security at application level and add your user
    4. Generate proxy (yes, the new name!)
    5. add the myPort.setUsername and setPassword code to your PortClient main method
    6. run proxy
    Second Option
    1. On the service, use the Secure Web Service wizard - check the Authenticate using Text Password but uncheck Integrity and Confidentiality Options (signing and encryption)
    2. Deploy to OC4J and add user as above
    3. Generate proxy
    4. Secure Proxy - check Use Username to Authenticate
    5. Uncheck Inbound and Outbound Integrity and Encrypt/Decrypt
    6. Add setUsername and setPassword as above
    7. Run
    With both of these I was able to call services. If you still have any problems, let me know and we'll try again
    rgds
    Susan
    JDeveloper Web Services PM

  • Username and password getting from one context to another context

    Hi all,
    In sample.ear have single sign on.
    i have two war files first .war and second.war.
    But different database for every war.
    first.war ==> db1[database]
    second.war ==> db2[database]
    Now i logged in to the first.war .
    if i want to go second.war using same username and password.
    how can i get the same username and password from first.war to second.war.
    Now i am using to send the username and password thorough hidden box..

    Hi,
    Since u r saying single sign on, u can provide a login at the simple itself.Then at one point u can access first, second applications from simple and u can pass the username, password to the applications from that page easily.
    Hope this helps.
    Cheers,
    Mouli.

  • Usernames and passwords

    Hey I have been really wanting to add an interface were users can create multiple usernames and passwords on my iweb page instead of the password protect feature that only allows 1 username and pass. is this possible?

    You create .htaccess with a text edit application. It's a file with rules for the folder you place it in your server. First off you need to create the file. Since files that start with a "." (period) are hidden OS files in OSX they can not be created in Text Edit. I use TextWrangler to create a text file and save as .htaccess to the Desktop which can then be uploaded to a folder on your host to create rules for the directory its placed in.
    After the file has been saved as .htaccess you will not see it on your Desktop since files that begin with "." are hidden by default in OSX. You can create an automator workflow finder action that uses terminal to display and hide files that begin with "." look here for more info.
    Then check out some different codes you can insert into the .htaccess file. Usually searching Google for desired_feature .htaccess will find what you're looking for. For instance if you search for password protection .htaccess like this then you can find the code and method for creating a password-protected site using .htaccess
    I've never used .htaccess for iDisk and can't say for sure if it's supported for iDisk - EDIT: actually I just tried and it isn't. I should've known this already. In which case if you're using MobileMe you're left at the mercy of their available features. Sorry, man. Time to switch hosts which allow for more dynamic features?
    So now the drumroll question... Where are you hosting your site? You hinted MobileMe but it's not certain. Where you host depends on what programming features, if any, are available.

Maybe you are looking for

  • Purchased Songs from iTunes will no longer sync to iPhone 4s.. any help on this ?

    . All that music is in Music library on iTunes and plays well has been purchased with the same Apple id. On Windows -7, iTunes 10.5. . Under previous purchased icon on iTunes all music shows downloaded. . Unchecked music Sync from iTunes > removed al

  • 9IAS and Java 1.4.2_06

    Hi all, I have installed 9IAS and Java 1.4.2 on Solaris 8, as per Oracle's own documentation I have changed the JDK to point to my Java installation in /usr/j2se in order for out Java based application to work, however the EM process will now not sta

  • Execute immediate in reports

    Greedings, How is it possible to do it in the follow query? DECLARE temp VARCHAR2(170); temp2 VARCHAR2(50); query1 VARCHAR2(50); BEGIN query1:='Table1'; temp:='Select distinct amount from '||query1||' where amount= '||'30'; EXECUTE IMMEDIATE temp INT

  • Populate a field in Forms with a blob

    I am trying to populate a field in Forms using a blob from an Oracle database. When we try to run the query to reference the field we get an error that states this cannot be done in this context. Is there a way to accomplish this. Thank you.

  • How can deaf people contact customer support?

    I'm looking for a chat link for deaf people who need to contact customer service. Going on the apple website, it seems that a generic phone number or email is available (We can't talk on phones, and emails take too long to reply). What is the best wa