Opening an URL that needs username and password

Hello
I need to open an URL that needs an username and a password. I can open a normal URL like this:
URL direccion = new URL("http://169.254.30.3:554/modules/admin.htm");
I tried:
URL direccion = new URL("http://username:[email protected]:554/modules/admin.htm");
but it does not work. (If I write this in my browser it works)
Can you help me please?
Thanks

Look here:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/Authenticator.html

Similar Messages

  • Could not open gmail on the mail application of the mac book pro. Gmail has two account types, SMTP and Google IMAP. In both cased failure in trying to log on to SMTP and Google IMAP because I have to verify that the username and password are correct.  Ho

    Could not open gmail on the mail application of the mac book pro.
    Gmail has two account types, SMTP and Google IMAP.
    In both cases failure in trying to log on to SMTP and Google IMAP because I have to verify that the username and password are correct.
    How do I verify that? Please help. Thanks.

    Routing gmail through Mail.app:
    imap-http://mail.google.com/support/bin/answer.py?answer=81379&topic=12814
    pop-http://mail.google.com/support/bin/answer.py?answer=13275&topic=12810
    More up-to-date advice here:
    http://www.macworld.com/article/2033842/make-mail-and-gmail-play-nice.html#tk.nl _mwhelp
    Note that you lose privacy when using Gmail (and Yahoo):
    Gmail and Yahoo both scan users' emails. They do algorithmic analysis of your email messages, targeting ads that relate to the content of your messages.

  • I can't access sites that require username and password since 4.3 update

    Since updating to IOS 4.3, I can't access bookmarked sites that require username and password. I can still get on sites that don't require it. Help please...

    Have you tried the standard fix of resetting your iPad?
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • I wanna ask about my imessages, because everytime that I am using my apple ID it is always saying that my username and password was incorrect.But I am really sure that I have input the correct username as well as my password.How can I resolve this problem

    I wanna ask about my iMessages, because everytime that I am using my apple ID it is always saying that my username and password was incorrect.But I am really sure that I have input the correct username as well as my password.How can I resolve this problem?

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • How do i open a protected pdf that requires username and password in side the pdf itself?

    Hi,
    I bought this pdf from SABS South Africa, the file contains the electrical unit standards and I cant walk around with my laptop all the time. The PDF has a username and password field on page 6, which connects directly to SABS website to be able to unlock from page 6 to 397. Why cant i type into the username and password fields on my mobile??
    Regards,
    Christo

    Hi,
    Is the PDF document "protectedPDF" by Vitrium?
    Currently, Acrobat DC mobile products (for iOS and Android) do not support PDF documents with DRM (Digital Rights Management) by third-parties.
    I am not aware of any other free mobile apps that support "protectedPDF" documents.
    I'd recommend using the desktop version of Reader on a Windows or Mac computer to view the PDF documents. Sorry for the inconvenience.

  • Need username and password

    I am replacing my standard issue dsl modem with a non verizon modem/wireless router combo unit.  It says in the install instructions that I need to have my dsl username and password.  I would rather not have to call verizon customer service (never had a issue, but jsut a pain to call with those voice activated menus), so I am wondering is this the same username/password I use to access my email, etc. at verizon's website?  Or some information used by my current modem that is totally different?

    The Username and Password would be the User/Pass to access to your Verizon e-mail, yes. If it isn't that, it would be the User/Pass to the Master account if you use a Subaccount for e-mail. Hope I'm clear enough with that.
    It might be worth pointing out that if your Westell modem was using DHCP and not PPPoE to connect to Verizon, you do not need a Login. Instead, all you need to do is leave the modem powered off for a few hours to allow the DHCP lease to break from the old modem, or you need to clone the MAC address of the old modem to the new modem. Otherwise, if you are in a PPPoE area that uses OpenPPPoE such as my area, you can use any Username/Password combination you'd like and it will connect.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • My firefox on my lap top (with windows 7) cannot open a website with a username and password, without first clearing the history ? my other computer has windows xp and it works fine.

    My firefox on my lap top (with windows 7) cannot login to my e mail website with a username and password, without first clearing the history ? my other computer has windows xp and it works fine.

    I simply reinstalled fire fox 3.6.19 and I can login no problem. Seems like it could be a compatability problem between 5.0 and windows 7. One other thing that happened often was lag while playing mmorpg games. Not sure if this fixed it or not, but I can update this thread when i find out.
    Thank you to who ever provided the link to the older fire fox downloads page in another question thread.

  • URL reporting - Hide username and password

    Hi all,
    I am trying to display a report when a  link is clicked by a user,I know this can be achieved by URL reporting.But any one who trys view the source of the file will be able to get the login information(aps-username/aps-password) from the file or they can view this info in the address bar.Is there any way of hiding this information?
    Thanks
    Manoj
    Edited by: Manoj Thomas on Oct 9, 2009 4:23 PM

    Well, you can hide logon credentials by passing the logon token to the APSTOKEN command in the URL.The other way is to use OpenDocument to view a report.
    In both the cases you need to get the logon token programatically and then pass it on to the paramater. This way you can hide the credentials.
    I assume that you have already gone through the following PDF:
    [http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    I have used it in my project and it works.

  • Using windows 7 and FF4, randomly when I open FF all of my username and password info for my websites has been removed and i have to re enter my login info. I did not have this problem with 3.6.

    None of my security settings are being changed and this is not being caused by any anti spyware program. if I go back to 3.6 i do not have the problem. I have reinstalled FF4 and now, 4.0.1, thinking it might be corrected but still the problem persists and I get tired of having to reenter login information for 20 or more websites every couple of days.

    I also had terrible issues with 2 Wire Gateway and my mid-2010 MacBook Pro.  We changed to WPA2 and that seems to have fixed the problem.  The AT&T tech support person, Phillipines, was extremely helpful.  She went through network settings with me.  One interesting step was going into my DNS tab (Network Preferences and then Advanced Button) and replacing my entries with these:
    68.94.156.1
    68.94.157.1
    It's been several days and I've only seen a few random packet drops.  Still charging along at full signal strength.

  • Connecting to an URL with a username and password?

    hey, I was trying to connect to a URL using:
    URL url = new URL("http://%20:[email protected]/Status.htm");
    but it gets the 401 access denied page...
    Does anyone know how to get it to login correctly?

    See http://www.javaworld.com/javatips/jw-javatip47.html

  • Guided Procedures WSDL : Username and Password

    Quick question , i am new to Guided procedures as part of integration i am working on this which needs me to point to wsdl while generating webservices. It works fine for webservices that doesnt have a Handshake of username and password but how to deal with webservices that need username and password authentication handshake ? Please suggest.

    Hi,
       In WD there's no direct way to access the SOAP message header. If the web service defines implicit headers in JAX-RPC then you have to use the setProperty methods of the javax.xml.rpc.Stub interface so that the JAX-RPC handler can retrieve these via the getProperty methods.
    Regards,
    Satyajit.

  • When attempting to open email I repeatedly get a message that my username or password is incorrect. I have tried everything to reconcile including deleting and reopening the account however nothing has worked.

    When attempting to open email I repeatedly get a message that my username or password is incorrect. I have tried everything to reconcile including deleting and reopening the account however nothing has worked. Any suggestions?

    If it is a POP account, there could be an issue with the outgoing server setting. It will not hurt to check this and make sure. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Pass the username and password in URL to auto log in the application from SharePoint List

    how to Pass the  username and password in URL to auto log in the application from SharePoint List  
    I have a link  in my SharePoint list  when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
    please help me it is possible

    Check out
    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • How to pass username and password with the portal url

    i want to access portal from my web site. i have created username and password fields in my web page. when submited , my portal page should open. so how to pass username and password with the portal url.

    This is not straightforward; but it is doable.
    First tell us about your portal version; portal 10.1.4 has a slightly different method of doing it and the pre-10g portals were completely different animals.
    And if you are in AS Rel 2, then the most important document for you would probably be the following:
    [Creating Deployment Specific Pages| http://download-west.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/custom.htm#i1015535]
    You might want to use it in conjunction with some metalink notes about your portal version and such a login page.
    hope that helps!
    AMN

  • Can't get username and password into client proxy

    Hello all,
    I am creating a client proxy using class xem_measurementImport (the doMeasurementImport method). I call this from an ABAP program, and it pushes measurement data into the EC (Environmental Compliance) system, which runs in Java.  Everything has been running well, except for one thing.  When I run the program in the foreground, it prompts me for a username and password, and when I run it in the background (it will be run that way in production), it gets a SOAP/authentication fails error message from the method, since username & password could not be supplied.  I tried to recreate my client proxy, but when it is created, the wizard does not prompt me for my name & password, which it should do, so that it can supply it to the calling program via the logical port.  Is this a configuration issue that Basis needs to address?   Thanks for any help you can give.

    gauravjlj wrote:
    because client will install the mysql not me. and I need username and password for the further programming.
    there is any file in mysql installation which can give me the username and password.
    please tell me.
    thanks
    gaurav agrawalNo. If the "client" is installing the DB (and, I assume, administrating it, I.E. removing the large security holes that exist in the default installation), then why don't you simply ask the "client" for this info a dialog?
    Otherwise, you should be providing a script in your installation package that modifies the DB to your needs, and instruct the "client" to install a "default" root password until after the script has run, and then to change the "root" password again. A Java application should definately not be worried about this stuff.

Maybe you are looking for

  • Adobe Flash pro cc runing under windows 8 64bit causing a lot of hard drive activity what do i have to do ?

    Hi My Flash pro cc is acting weird, pushing the hard- drive to its limits tried to install and reinstall and do a clean setup , scanned for malwares but nothing came out of this , one more thing bizarre each time i go check my preferences tab every t

  • Opening PDF in Web Browser(IE)

    Hi, I have written a program to download PDF file. When user will click on "Download" link, PDF file should open in web browser IE itself. Currently file is opening in separate window. I am creating this PDF file run time and it is not stored in hard

  • Why is my iPhone 5 / iOS7 not connecting to hidden network?

    It's a 2,4/5GHz Mixed network where iOS6 and older iPhones are connecting to the network but iOS7 / iPhone 5 not. I can't change the SSID or 2,4 GHz and 5 GHz settings because it's a corporate WiFi network.

  • ESR,ID working with 8000 port but not with 50000

    Hi experts, I am working with PI 7.1. I am working with SOAP to ABAP SERVER Proxy scenario. I have downloaded the WSDL from ID and using XMLSPY sent a SOAP request to PI server and I got an error in SXMB_MONI under the Call Adapter step saying CLIENT

  • JSF,Tiles, Sun App Server and NetBeans 5.5

    hi all, here is my environment : 1.Server - Sun Application Server (Running On Suse Linux OS) 2.IDE - NetBeans 5.5 3.Project - JSF with Tiles here i found topic about tiles and jsf : http://forum.java.sun.com/thread.jspa?threadID=643536&messageID=379