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.

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.

  • 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

  • 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

  • OSB 11g - Authentication - Username and password in SOAP body

    Hi,
    I have a PS based on the WSDL provided by the client. According to the WSDL the client will send the username and password (to be used for authentication) in SOAP Body. I have extract the username and password from the body and authenticate it and then only process the data.
    The approach I am thinking of is to create two PS. The first PS will be called by client to send the data. There will be no authentication required for this PS. Once this PS (PS-1) receives the message it will extract the username, password and data from the SOAP body. It will then set the username and password in the HTTP header of the second PS (PS-2) and the data in the SOAP body of PS-2.
    PS-2 will be under basic authentication. PS-2 will accept the data as the only payload. Upon receiving the data it will do the normal processing.
    But I do not see any way to set the HTTP header (Authorization) for the second PS. Is my approach correct? Is there another/better approach?
    I went through this link [http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/security/model.html] and found that we may have to configure another Authentication provider. How to do that?
    Thanks,
    Sanjay

    Hi Sanjay,
    Your approach seems correct to me (using two proxies) but instead of setting the username and password in HTTP header, you may set it as SOAP header and use Custom Authentication method in OSB. To know more about it, please refer -
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15866/message_level_cust_auth.htm#i1069719
    Regards,
    Anuj

  • 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.

  • For the 1st time I am trying to send an iPhoto by email but get an error message "combinations of username and password not recognised" I use the same details to log on to my Sky Mail (yahoo mail ) account . Any ideas?

    For the 1st time I am trying to send an iphoto by e-mail but get the error message " combination of username and password not recognised  by the server" I use Sky Mail ( yahoo mail) and input the same username and password that I access Sky Mail - have retried many times. Predictably the Sky help desk have no idea. Can anyone help please?

    I regret that you're having trouble setting up your email, corbad! You're on the right track with your incoming email address. You might also try incoming.verizon.net or incoming.yahoo.verizon.net as possible alternatives, and 995 as the port number. Please let me know how that goes!
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Email send/receive suddenly doesn't work ; can't change email settings as BB phone won't accept valid username and password -- what to do?

    email send/receive suddenly doesn't work (as of September 24th); I can't change email settings (one suggestion from tech) as BB phone won't accept *valid* username and password -- what to do?
    I understand from a support note that if I keep trying my password/username combination, my BB will eventually delete all data!
    I can't understand this. I'm completely lost now. I can't remember what I've done or tried to do. A plethora of usernames and passwords is swimming in my head.
    Thanks for any hints. I have always loved this BB Bold and have never had any trouble with it.

    But the real question is why for the past year did the passwords work and then all of the sudden after this anomaly the disk password doesn't work?  I'm not 100% sure of what my configuration was, but I know that most of the time it required one password -- supervisor, and occasionally it asked for 2 -- disk password as well I believe.  This may have been related to the Password on Restart setting I think -- asking for the disk password on cold vs. warm boot.  But I know both were exactly the same.  But after this incident only the Supervisor password worked.

  • Username and password for SOAP sender call

    Hello,
    does anyone know how to provide the username and password to a SOAP sender call, e.g. XI receives the ws via soap and needs to know which userid and password to check. When you use a SOAP client they use basic authentication which sends the request first to XI and XI send a request back for password. This would work for an online app but not for ws from machine to machine. I read some docu about query strings but no where it has an example what to put either on the request URL, the adapter or the SOAP envelope. SOAP 1.1 seems to have left that open and IBM has an example using SOAP Header which did not work with XI.
    Thanks
    Stefan

    Hi,
    do you use the javax.xml.rpc.Call class? Because then
    you can supply username and password to the call via
    the addParameter method. I think I did that with XI 3.0
    and it worked. If you need more information please consult
    the javax.xml.rpc.Call javadoc.
    Best regards,
    Hermann

  • I am not able to send mails through Yahoo APP.It gives me an error msg :"the sender address has ben rejected by the server ".I tried adding username and password in the SMTP server settings,But those optiopns are greyed out.

    I am not able to send mails through Yahoo APP. It gives me an error msg :"the sender address has ben rejected by the server ".
    I tried adding username and password in the SMTP server settings,But those optiopns are greyed out.
    So, i am not able to enter anything in fields under SMTP server settings

    You probably have changing settings disabled in Restrictions.

  • TS3276 The mail doctor is saying my username and password are incorrect. They were not. I changed my password anyway, and it still won't let me send my mail. How do I fix this?

    The mail doctor is saying my username and password are incorrect. They were not. I changed my password anyway, and it still won't let me send my mail. How do I fix this?

    try to log in using webmail. if you can't do that, then issue is solved.

  • How to send username and password

    Hello Friends,
    When a BSP application is tested or executed,
    it opens a explorer window and asks for the server username and password.
    Is there a way where I can pass the username and password through the url so that the user nedd not know the username and password but directly can open the browser and use the application.
    Regards,
    Raju...

    Hi,
    A golden rule is never to state a userid passwd in an URL.
    What you need to is to set a default user in the BSP app.
    Check http://help.sap.com/saphelp_nw2004s/helpdata/en/02/4b52922a8d11d5991f00508b6b8b11/frameset.htm
    for this.
    Some background info:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/4b52922a8d11d5991f00508b6b8b11/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e5/171ad0398711d5992200508b6b8b11/frameset.htm
    Eddy

  • What to do in iPhoto, error when sending pics email, username and password not recognized

    I have imported photos from my camera to iphotos, cool it works great.
    But why when I want to email the pics, I get an error message that states
    my username and password arent recognized??

    In the iPhoto preferences ==> accounts delete the account and renter it
    Or better yet IMHO set Apple mail as your email client in the iPhoto preferences rather than iPhoto
    LN

  • I can't send emails, I have tried to go to smtp and change the outgoing email username and password but it won't let me change it!

    I have tried to change the smtp username and password but I am not able to even click on the areas to change them.  Any suggestions?

    Some other thoughts .....
    Are you sure there's not an issue on the Yahoo server? Have you checked your email on a computer or via a web browser on the iPad like Safari?
    If there is no issues on the server side, the options in my mind are.....
    Delete the email account and start over
    Reset all settings>Settings>General>ResetAll Settings - you erase all settings on the iPad and start over
    Restore from a backup.
    Just wait until a little later - or tomorrow and see if you can connect again.
    If you just started experiencing this issue today, and if you are a regular iPad backup person (I do it every single day) then you can restore from a backup from yesterday, the day before or from whenever your most recent backup is dated.
    You said that you have two other accounts that will not work either so maybe resetting the settings would be the first thing to try. You should be able to at least enter the correct information again if you reset the settings.
    I mysteriously lost the ability to connect with one of my email accounts some months ago. I deleted the account and went nuts trying to add it back to the device and I could not get it to work again. I deleted it again and restored from my backup and all was good to go again. Your backups contain your email settings so when I restored from the backup, it restored the email account settings and it worked again.

Maybe you are looking for

  • Creating a report in Web dynpro using OOPS concept

    Hi all,          Iam new to web Dynpro, i need to create a report in Web Dynpro  using oops concept. can any one guide me regarding it. Regads, Easter

  • How do I insert  a cell or range of cells in Numbers?

    From what I've read, one has to highlight and move cells to create the space for the new cells.  This may be fine for small tables, but I have an inventory that currently has over 2000 lines of data.  So if I need to add a line of data at row 2, then

  • Commenting in Reader Not Working

    I am using Pro 9 and have enabled commenting for Reader users.  My collaboration is file based (stored on local server with full access rights).  I have two problems. 1) Comments made by others are not visible in pure Reader users.  I can see the com

  • Sales order details thru ALE

    hi folks, i have a simple scenario to do with ALE/IDOCS. i have to create sales order in SAP. And when ever that SO is created the sales orders details should be sent to an external system (here, notepad). could any one suggest me teh step by step pr

  • Lean Order Functionality - Sales Order Create

    Hi Gurus, Can anyone please confirm Service ECC_SalesOrderCrtRC1 or ECC_SALESORDERERPCRTRC2 creates a sales order through Lean Order Functionality. My requirement was like sales order should be created through Lean Order Functionality. We are in the