How to send userid and password to yahoo website

Hi All,
I am working on a project(single sign on) and want to open a website (say yahoo). how can i open yahoo website in Browser from java code. which classes will i have to use?? Also , how can i provide username and paswrd in their respective fields (login, passwd) in the webpage, so that this programs automatically helps to directly access the inbox?
thanks in advance.

Prepare post data,
String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");Creat connection,
URL url = new URL("http://hostname/");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);Send data
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();If you need to get the response do the following
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            // Process line...
        wr.close();
        rd.close();

Similar Messages

  • How to encrypt UserID and Password in HTTP url

    Hello experts,
         We want to encrypt UserID and Password which has used in http URL in SAP PI 7.1.
    As we have used SOAP adapter with Transport Protocol HTTP for sender server.
    Kindly help us on it.
    Regards,
    Poonam.

    Hi,
    please go through below blog,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04408cc-f10e-2c10-b5b7-af11026b2393?QuickLink=index&overridelayout=true
    please go through below threads,
    SOAP Envelope with user id password
    Soap ---to ----file scenario
    regards,
    ganesh.

  • How to Hide userid and password in the address bar

    Hello Dears
    I am using OAS 10g and calling a form from my web portal designed in ASP.Net. I pass userid and password to OAS as parameters and form is accessed but the problem is that userid and password are displayed in the address bar. How can I hide this info to secure my application.
    Note: This is a multi-user environment.
    Please guide. thanks
    Inayat Qazi

    On your reports server in the reports\conf directory there is a file called cgicmd.dat
    This file allows you to create a key that will be replaced with the entry from this file. You can put your userid and password parameters in here and thus remove them from the address line.
    Key value entries look like this in the file:
    examplekey: userid="scott/tiger@myoracleinstance" %*
    your url would then look like this:
    http://myreportsserver/servlet/rwservlet?examplekey&report=myreport.rdf&destype=cache

  • How to authenticate userid and password of b2b user in a b2c portal

    I am having a reqirement in B2C web portal , where in i have to create two input text fields which will accept userid and password ( the userid and password will be of b2b users)and button to logon and if i click on the logon button, it should take into b2b web portal. Is it possible? if possible please help me in this issue.
    Please get back to me if i am not clear in my requirement.
    Thanks a lot in advance!
    lakshman reddy G.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Oct 6, 2008 6:07 PM

    To get an idea check these links.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/aaa1a890-0201-0010-eb93-ae3d2bb74a78
    BSP/HowTo - Customizing the design of System Logon page in NetWeaver '04
    -Aman

  • How to Store UserID and Password on Server

    Hi,
    I m using Applet-Servlet Communication. When my applet calls Servlet it makes database connection and retruns Object to Applet. Can ne body pls. tell me instead of hardcoding database userid and password in servlet, what is a most convinient way to a pass these parameters to servlet. Properties files are one of the way, but is it secure and suaitable on the Web? Is there ne other funda for this?
    Thanx in advance
    Sandeep

    No, I don't think the use of properties file is a suitable
    approach.
    You can use JDBC-realm .Accept the username & password from user,pass these values to the servlet and then validate this against the names stored in the database.

  • 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

  • Extension Mobility in CUCM 7.1: How to send Userid and Pin with Service Par

    Hi at all
    is it possible to configure the IP Phone Service (CUCM 7.1)for Extension mobility so that when a user login in EM they dont need to insert the UserID and UserPin???
    I think it could work with the Service Parameter but I dont know how.
    Have somebody an idea?
    Thanks.
    kind regards
    José

    Hi!
    As far as I know that's not possible and it will defeat the purpose of using Extension Mobility as anyone could login from a phone with no credentials. Porbably you could configure a script or something that allows you to accomplish this, but it won't be supported.
    Regards,
    Teresa.
    If you find this post helpful, please rate! :)

  • 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

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

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

  • Hi, how to develop application , matching of userid and password to backend

    hi masters ,
                  , user  have to give userid and password of back end sap system  to see particular report. i mean there is a first view ( this first view muust not be first screen of portal ) with userid and password fields . after gave his id and password he can go to second view to see the particualr details .please suggest me about how to do custom bapi code and , in also  webdynpro java  how to develop .
               i know about sso. in this concept i have to use through webdynpro java only. no need of sso concept here .
              after giving the  userid and password , those details must be match with  backend sap database.if no  one of userid and passwrod field  is  matching it has to show some error message. and in password field must be in encrypted letters .

    hi surya,
    Use JCO api to create connection to the backend.
    [JCO tutorial|http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25]
    On the webdynpro screen you can ask users to enter login id and password. Use this information to create connection to backend using JCO.
    Hope this helps!
    Monalisa

  • How to use the userid and password infor from Oracle DB in BO

    Out client has the userid and passwords(encrypted) infomration stored in oracle table.
    Is it possible to import this useid and password information into BO .And use the same userid and password from Oracle table for its login authentication and for data security...?
    In other words can the userid/pwd info from Oracle Profile Table imported and re-used in BO Enterprise Edition.

    If the users/pw are in an Oracle LDAP v3 compliant server then you can import them via LDAP plugin, else you would need to bring them in an enterprise users via script. The Import wizard can do this and the SDK (see the SDK forums for more info on how)
    Maintaining the passwords would be difficult unless you are using and industry standard directory like LDAP.
    Regards,
    Tim

  • How do pass the UserID and Password in the SOAP header for web services

    I am encountering issues trying to pass the userid and password in the SOAP header when consuming a 3rd party web service.  Rostewitz posted something similiar but I don't know how to type iv_xml.  Any help would be greatly appreciated.
    Thank you,
    jpina

    It helps to post a link to a thread when you refer to it.  If you are trying to implement that solution though, you can look at the parameter of the corresponding method being called.  The parameter has type 'SIMPLE' which means that it is compatible with all of the predefined elementary ABAP types.  In this case, you should use 'STRING'.

  • How to create a desktop shortcut that includes UserID and Password

    I would like to know how to add my User ID and Password to allow seamless login to a site by using the userid and password
    I have an existing shortcut and would like FF to open and login to the site with one "double-click"
    I do appreciate that it is a security risk to do this, but the information on this site poses no risk for me if someone that has authorized access to my personal computer, click on this shortcut.
    I will appreciate any help to assist me in doing this.
    Kind Regards
    Frits

    iamjayakumars,
    Thanks for the advice, but the website does not give the option to save the password, hence my question
    Any other way I can perhaps in the properties specify that?

  • When starting webcenter domain, how not to enter userid and password?

    Dear All,
    I followed this link http://yonaweb.be/start_webcenter_domain in installing my webcenter domain and I was successful in setting my own webcenter and busy exploring the webcenter spaces.
    My only concern is that when I am starting my webcenter domain it always ask for user id and password for the weblogic.
    I created a small batchfile for this.
    call C:\Oracle\Middleware\user_projects\domains\webcenter_domain\bin\startManagedWebLogic.cmd WC_Spaces http://localhost:7001but how can I get away from typing the user id and password?
    Thanks

    >
    otherwise,you can specify the userid and password in boot properties file of your domain.
    \user_projects\domains\dryrun_domain\servers\AdminServer\security\boot.properties.
    # Generated by Configuration Wizard on Wed
    username={AES}dbjKVafUpVLPvTG04tGl12RJRCaYmU5dmv2Yw=
    password={AES}5WHBgndS2Fq2uoiIKKWI+rM2uwTPAYQ0I=
    replace the username and password with your credentials.There's a nice tutorial with screenshots describing how to do this here:
    http://st-curriculum.oracle.com/obe/fmw/wls/10g/r3/installconfig/enable_auto_login/boot_identity_file.htm#t4

Maybe you are looking for

  • Toshiba ph3100u-1exb External Hard Drive Will Not Stay On

    Hello all. I recently purchased a Toshiba ph3100u-1exb 1.0 TB external hard drive. It's working great, but the problem I am running into is that it will not stay powered on for more than a couple minutes. I'm sure that its some kind of power saving f

  • Message Handling in BADI implementation

    Hi All, Initially I was trying to use an EXIT but was not able to do so because we were not getting the functionality properly. So i switched to BADI. I have implemented a standard BADI and its working fine. Now i want to display messages as required

  • I want to connect a Belkin router to my TC

    I want to connect a Belkin router to my TC via cable to extend my network to my garage.  Can anyone tell me how to go about it, if it is possible to do?

  • Enable Novalidate a table constraint

    I created a table with a unique constraint on one column DISABLED. I then proceeded to insert duplicate data in this field. When I try to ENABLE NOVALIDATE this constraint, I get the error ORA-02299: cannot validate (SCOTT.SARAH_U) - duplicate keys f

  • After my '2 years' if I don't upgrade I deserve a discount

    After my '2 years' if I don't upgrade I deserve a discount - the reason for the service contract was to pay off the cost of the "free" phone. Especially since there was a hefty penalty for cancelling before the contract completes. So now I'm effectiv