Browser need proxy username and password

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);
}

ray,
Sounds like a permission problem.
Try running these.
ColdFusionDirectory\bin\connectors\Remove_ALL_connectors.bat
ColdFusionDirectory\bin\connectors\IIS_connector.bat
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"RayBees" <[email protected]> wrote in message
news:ek727f$bnq$[email protected]..
> Greetings
>
> I have an interesting problem. When I browse certain
section of my website
> I
> am asked to enter my username and password. When clicked
"cancel" twice
> the
> person is let throught to the page. This seems to be
related to the cfform
> tage. If I remove the tag, I am no longer asked for the
username and
> password.
> This happens in IE 6 and 7, Netscape 7.1 but not in
Firefox 1.5 or Mozilla
> 1.5.
>
> But here is where it gets really interesting, If I log
onto the web
> server,
> every page asks for the username and password. Any
thoughts?
>
> Thanks
> Ray
>
> The Specs
> CFMX 7.02
> Windows 2003
> IIS 6
>

Similar Messages

  • Firefox any version Mac, has a bug were it does not see or ask for the proxy username and password. This happens if you use a virtual tagged interface.

    Firefox any version Mac, has a bug were it does not see or ask for the proxy username and password. This happens if you use a virtual tagged interface. A recent network University policy change. The only way to fix this, is if you use a manual proxy configuration in Firefox. So all 100 + uni iMac's can only use Safari as I would need to do a profile push to all 300 students and I am unsure what file carries the proxy information.

    Firefox any version Mac, has a bug were it does not see or ask for the proxy username and password. This happens if you use a virtual tagged interface. A recent network University policy change. The only way to fix this, is if you use a manual proxy configuration in Firefox. So all 100 + uni iMac's can only use Safari as I would need to do a profile push to all 300 students and I am unsure what file carries the proxy information.

  • Tthe network needs a username and password for devices. College. Options!?

    I am a new college student and I want to print wirelessly.  The network needs a username and password.  The problem is when setting up a wireless network on the printer, it doesnt allow this. What are my options to print? Please help!?
    HP Officejet 6500 e-all-in-one
    This question was solved.
    View Solution.

    Printers do not work with networks that require a username and password to communicate on the network.  Sorry.
    The only way you will be able to use the printer wirelessly is through an ad-hoc connection.  This means the computer will not an Internet connection while it is connected to the printer's ad-hoc network unless the computer has two network connections available (2 wireless or 1 wireless and 1 wired).
    The top of page 138 of the manual details how to connect to the printer's ad-hoc network.
    Let me know what happens.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Safari ignoring proxy username and password

    I have an iPad2 and an iPad1. If I enter a username and password in the proxy settings for our company WiFi network, the iPad1 works flawlessly, the iPad2, however, ignores the username and password, and prompts for it onscreen. If I enter the username and password in Safari, it only remembers it for that session.
    I have tried in both iOS 4.3 and 4.3.1, no success.

    Unfortunately the problem is still present after upgrade ios to 4.3.4 or 4.3.5 . Some ipad2 (and iphone4) ignoring proxy username and password.
    Has anyone solved this problem about authentication proxy  ?
    Thanks.
    Alessandro Ghezzi
    EDP E Servizi S.p.a.

  • Firefox keep asking for proxy moz-proxy username and password

    Windows 7, latest firefox. When I go to certain websites (like amazon.com), it keeps asking me The proxy moz-proxy:... user name and password. Entered CORRECT username and password and doesn't work. Keep asking again and again until I click cancel. Quite for couple of minutes and then back again. Not all sites, some sites have no problem at all. Using system proxy.
    Tried reset firefox and lots of config setting on the web, nothing works. Can someone help?!
    Thanks.

    Separate Issue; Update your
    Flash Player '''v15.0.0.189 http://get.adobe.com/flashplayer/'''
    If you are not sure about something asking about your password, '''Leave.'''
    The only thing that should be asking about your proxy, is your proxy.
    Hello,
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Browser asking for username and password.

    Greetings
    I have an interesting problem. When I browse certain section
    of my website I am asked to enter my username and password. When
    clicked "cancel" twice the person is let throught to the page. This
    seems to be related to the cfform tage. If I remove the tag, I am
    no longer asked for the username and password. This happens in IE 6
    and 7, Netscape 7.1 but not in Firefox 1.5 or Mozilla 1.5.
    But here is where it gets really interesting, If I log onto
    the web server, every page asks for the username and password. Any
    thoughts?
    Thanks
    Ray
    The Specs
    CFMX 7.02
    Windows 2003
    IIS 6

    ray,
    Sounds like a permission problem.
    Try running these.
    ColdFusionDirectory\bin\connectors\Remove_ALL_connectors.bat
    ColdFusionDirectory\bin\connectors\IIS_connector.bat
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "RayBees" <[email protected]> wrote in message
    news:ek727f$bnq$[email protected]..
    > Greetings
    >
    > I have an interesting problem. When I browse certain
    section of my website
    > I
    > am asked to enter my username and password. When clicked
    "cancel" twice
    > the
    > person is let throught to the page. This seems to be
    related to the cfform
    > tage. If I remove the tag, I am no longer asked for the
    username and
    > password.
    > This happens in IE 6 and 7, Netscape 7.1 but not in
    Firefox 1.5 or Mozilla
    > 1.5.
    >
    > But here is where it gets really interesting, If I log
    onto the web
    > server,
    > every page asks for the username and password. Any
    thoughts?
    >
    > Thanks
    > Ray
    >
    > The Specs
    > CFMX 7.02
    > Windows 2003
    > IIS 6
    >

  • Ical in outlook needs a username and password

    Hello,
    I am using a shared calendar in icloud and want to add this to outlook.  I have sent the invite to my outlook account and it has an address like webcal://p04-calendarws.icloud.com/ca/subscribe/1..
    When I click on the link it asks me if I would like to "add this internet calendar to outlook..".  If I click yes, it firstly asks me for a user name and password.  I have tried my iCloud credentials but these did not work.  After this has failed, outlook then says:"can not verify or add this calendar to outlook".
    Can anybody help and let me know what I need to do (not okay to add the icloud add-in to outlook as I am using a work computer and running XP and Office 2007).
    I would also like to sync the contacts as well.  Is this possible too?
    Many thanks,
    Nick.

    Printers do not work with networks that require a username and password to communicate on the network.  Sorry.
    The only way you will be able to use the printer wirelessly is through an ad-hoc connection.  This means the computer will not an Internet connection while it is connected to the printer's ad-hoc network unless the computer has two network connections available (2 wireless or 1 wireless and 1 wired).
    The top of page 138 of the manual details how to connect to the printer's ad-hoc network.
    Let me know what happens.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Add Proxy Username and Password and also SOCKS proxy to Dreamweaver CC 2014.1

    Hello
    I am currently behind a network corporate proxy that requires a username and password to login.
    Dreamweaver since CS4 has never supported any proxy including SOCKS that require a login; this is backwards and is supported by most other IDEs.
    The Dreamweaver user interface only has fields for entering the FTP server login information. An example of a proxy server that Dreamweaver does not support is SOCKS.
    SOURCE: http://helpx.adobe.com/dreamweaver/kb/troubleshoot-ftp-problems-dreamweaver-cs4.html
    Please can you add the ability to have more complex proxy addins such as SOCKS. Filezilla has a range of proxy settings but due to the nature of it saving username and passwords in XML files and non-encrypted passwords we cannot use this.
    I use the full Adobe CC and use a Mac on Yosemite
    Regards

    It's highly unlikely that CS4 will gain this feature since it is now 7 versions removed from the current one and no longer supported with updates.  My advice is to find a secure, dedicated FTP app you can use.
    http://fetchsoftworks.com/fetch/security
    Nancy O.

  • I downloaded firefox. I want to use it to make phone calls etc but do I need a username and password?

    This is my first use of firefox. I downloaded the firefox as on internet. I tried to use the hello phone but to no avail. Do I have to fill out a form with username and password? What else?

    Sorry, Hello is not for making "phone calls", as such. It is a browser to browser form of video / audio "chat" communication, using the WebRTC API.
    http://www.webrtc.org/home.
    https://blog.mozilla.org/blog/2015/01/13/firefox-hello-makes-connecting-by-video-as-simple-as-in-person/
    https://support.mozilla.org/en-US/kb/firefox-hello-video-and-voice-conversations-online
    https://support.mozilla.org/en-US/kb/which-browsers-will-work-firefox-hello-video-chat

  • Mac keeps saving the proxy username and password. How to disable this feature, so that safari will ask for it everytime that I connect?

    The title speaks for itself. It's the school computer and I don't want it to save every student's username and password.

    You can't disable it. I assume that you want to know which student is using the network at any given time. You would need a more advanced server-side solution for that, such as a captive portal.
    Captive portal - Wikipedia, the free encyclopedia

  • Browser prompting for username and password to access enterprise manager.

    I've just installed Internet Directory 10.1.4.0.1 and am having trouble connecting to Application Server Console in Enterprise Manager.
    When I try to go to the url http://localhost:18101, a dialog pops up asking for a username and password. In firefox it says 'Enter username and password for "enterprise-manager" at http://localhost:18101'. IE6 just says, 'enterprise-manager'. I have tried various sets of credentials for this - my network userid and password; and ias_admin, orcladmin, sys and sysman, all with the passwords I specified at install time. None of these work. If I cancel the dialog box I get a '401 Unauthorised' page. I'm sure this is coming from apache and is basic web page authentication, and not an enterprise manager login.
    Has any one seen this before?
    I can connect through directory manager, and I can connect to the database console for the metadata repository.
    emctl status iasconsole shows that it is running.
    Windows XP Pro SP2 standalone (ie not part of a windows domain)

    trying to access my college intranet form home
    Contact your college network support.  The syntax for specifying your authentication may be different than you usually use when you are just connecting there locally.
    Robert Aldwinckle

  • OS X says  D-Link DSM g-600 network drive needs a username and password.

    Can connect my macbook to my wireless network, surf the net and detect network printer and shared files on my XP Home Desktop. The LAN portion consistists of a network printer, Linksys router, XPHome desktop and 500 GB external storage device. The storage device is a D-Link dsm g-600. The files therein were put there by the desktop and a now-defunct XP Home laptop over the course of 2 years. The laptop never had any trouble detecting, connecting to and reading files on the DSM-G600.
    The Macbook detects it under "Finder", but fails to connect. Trying to connect elicits and demand for username and password. Connecting to the DSM from the XP computers never required a password and conecting to the device as an admin just requires the username "admin" and no password. D-Link says its an OSX problem and Apple says its a D-Link firmware problem. Before buying a ticket to India to find the phone techs that told me this, I'm wondering if anyone else had any thoughts.

    Basics - Server 2008 R2 - SP1, WDS,  MDT 2013
    Well all, I've done this at least 20 times today and the deployment share info is still wrong...
    Someone else built and messed with this thing so i'm trying to fix it.  We have 2 MDT servers and 1 WDS that is on the Production MDT.  I've turned the test MDT off.
    It was working fine, until I updated the deployment share ... after adding some drivers for the surface pro 3 for the pxe boot
    Very Simple bootstrap.ini
    [Settings]
    Priority=Default
    [Default]
    DeployRoot=\\MMPDEPLOY02\DeploymentShare$
    UserID=xxx
    UserDomain=xxx
    UserPassword=xxx
    KeyboardLocale=en-US
    SkipBDDWelcome=YES
    It continues to show up on the client as ||mdt901w8|deploymentshare$  (test server) (pipes for \ since it makes it a link and i'm new)
    I've deleted all the .wim and associated files from all locations from the deployment share\boot folder and from the wds remote install\boot\x64\images folder where they are instead of the remote install\boot\images folder that everyone refers to.
    I really can't figure this one out... I know it's something simple I'm over looking but I can't see it..
    Any ideas..

  • Proxy Username and Password

    Hello.
    I am trying to connect to my work network/Internet via Safari (as well as Software update, mail, ichat...anything that uses the network connections).
    I keep getting the same error, over and over again. The User name and password for the proxy are incorrect. But I know that it is...because Firefox Connects just fine. I can also see the shared drives, which require the same set of credentials. I have checked all the Network Connection settings like a million times. They are just the same as the Firefox. So it should work. I just upgraded from 10.5.8 to SNLP but the issue is still the same. Please help.
    Is there a prefix or something in the user name the safari needs and FF doesn't?
    Thanks
    Andy

    Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a file local-settings.js in the defaults/pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    *http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes

  • When i open Firefox (in general), i dont mean sign into any email address, just to start using Firefox, i want to have always to sign in with my proxy account = username and password..how? thank you!

    when i click on the Firefox icon i want always to have to sign in with my proxy username and password.. i want more privacy in using Firefox in general.. is that possible? thanks

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I'm trying to access a forum that requires a user name and password.  When I do it on my mac it tells me the password is incorrect but when I do it on my iPad, I can access it without any problem.  I can confirm the username and password are the same

    I am trying to access a forum for which you need a username and password but it keeps telling me the username/password i've entered are incorrect.  Bizarrely, when I enter the same username/password combination on my iPad, it grants access without any problem. 
    What could be causing this, is it an issue with cookies, caches or similar.  How can I resolve it?  The forum administrator is at a loss as to what the problem is.

    Try the following steps in Safari to see if they help:
    1) First try clearing the Safari cache.  To do this pull down the Safari menu and select 'Empty cache...', then try logging into the site again.
    2) If the issue continues then reset Safari by pulling down the Safari menu and select'Reset Safari...'. You will be presented with a list of items that can be reset. I suggest selecting the 'Reset saved names and passwords', and 'Remove all website data' options at a minimum.
    Here is a list of the options and what they do. I pulled it from the Safari help page.
    Clear history:
    Clears the list of webpages you viewed.
    Reset Top Sites:
    Clears any changes you made to Top Sites, such as adding or pinning sites. If you also clear your history, your Top Sites page reverts to showing the webpage previews displayed when you first installed Safari.
    Remove all webpage preview images:
    Clears any thumbnail images Safari saved of webpages you viewed.
    Clear the Downloads window:
    Clears the list of files you downloaded from websites. Only the names are removed; the files themselves are still on your disk until you remove them.
    Remove all website icons:
    Removes website icons, which are small graphics that help identify sites on the Internet. You see them in the Safari address field and bookmarks list, and other places. These icons are stored on your computer.
    Remove saved names and passwords:
    Removes user names and passwords that Safari automatically fills in at websites that require them (if the AutoFill feature is turned on).
    Remove other AutoFill form text:
    Removes some personal information, such as telephone numbers, that Safari uses to automatically fill in forms on webpages (if the AutoFill feature is turned on). Removing AutoFill information does not remove information from your address book.
    Close all Safari windows:
    If you don’t close all Safari windows, someone could use the Back and Forward buttons to view the webpages you visited.
    Reset all location warnings:
    Clears any information websites saved about your location.
    Remove all website data:
    Removes cookies, tracking information, and other data that websites stored on your computer.

Maybe you are looking for