Post form to 3rd party website

I have searched your forums, but not found what I need.
I am new to Java, and am battling to put together code to:
a) open a URL (e.g. www.google.com)
b) post data into a form (e.g. some keywords)
c) submit the form
Where can I find an example?

Have a look at the address bar after you do a google search...
eg. "java +java3d"
http://www.google.ie/search?hl=en&q=%2Bjava+%2Bjava3d&meta=
The servlet URL is "http://www.google.ie/search"
The first parameter is after the "?" separator.
Other parameters are separated by "&".
The text is URLEncoded.
So the psuedo vague code should be something like....
String mySearchParams = "java +java3d";
StringBuffer dynamicURL = new StringBuffer ( "http://www.google.ie/search?hl=" );
dynamicURL.append ( java.net.URLEncoder.encode ( mySearchParams ) );
dynamicURL.append ( "&meta=" );    // end of query string
URLConnection urlConn = new URLConnection ( dynamicURL );
urlConn.connect();
InputStream googleResultsStream = urlConn.getInputStream();
// now read the HTML that google returns...regards,
Owen

Similar Messages

  • How do you transfer songs from my iPod Classic to my new computer? The only songs that transfer are those that I purchased on iTunes. Is there a 3rd party website or something?

    I am trying to transfer 3000 songs from my iPod Classic to my new computer. The only songs that transfer are those that I have purchased on iTunes (242 songs). All of the music from my CD collection that I have on my iPod Classic will not transfer. What (if any) is the best 3rd party website that will assist?

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Communication between SAP e-recruitment and 3rd party website

    Hi,
    We are implementing e-recruitment module and would like to know how to transport a recruitment advertisement created in SAP e-Recruitment to a job website. Should we use IDOC and XI? Or is there some other way of doing it? How does SAP e-Recruitment communicate with the 3rd party website? The advertisement should be transported in a way that it can be directly displayed on the job website, with all the formatting intact.
    Please let me know in detail how the functionality can be achieved.
    Regards,
    DK

    Hi,
    Did you have any reply on this?
    regards
    Justin

  • Adobe Muse form with 3rd party host is not working

    I have uploaded a form with Adobe Muse to a 3rd party host.  Upon testing the link scripts/form_check.php, I see 3 green checkmarks.  Upon testing the form, the form appears to submit successfully, however I never receive the email.
    I checked with the hosting company and this is what they said:
    ...this form is using localhost smtp of webserver which was stopped due to spamming issues...actually, localhost doesn't have proper rDNS record and the return path for all mails is the server itself, so whenever a client uses its domain for spamming the server's mail queue gets choked and creates issues for others. So we generally do not open localhost smtp and recommend users to use proper SMTP Authentication so that each mail will be delivered and won't create issues for server even if someone does spamming because in that case all mails will bounce back to the mailbox.  So, we recommend you to use smtp authentication in the form and use proper smtp details to send mail.
    Please provide a recommendation on what I should do to resolve this?  Is there a way to modify the form so that it uses proper SMTP Authentication instead of Localhost?

    Hi
    Please refer to this document :
    https://forums.adobe.com/docs/DOC-3581
    Thanks,
    Sanjit

  • Creation of master data info object- data coming form a 3rd party system

    Hi All
    i need to create a master data info - object  which connects the customer and the corresponding plant..actually thios data is coming from a third party system and they have maintained 2 tables one for customer and one for the plant details and these 2 tables are connected through some common id which populates unquie id for each customer and is maintained in the plant table with the same id...now both these tables have to be merged together and to be cretaed as a single info object..can any one suggest  me as to how to proceed with it.
    Regards
    Shilpa

    Hi,
    Create a Z-InfoObject with the same format as is used in your 3rd party system for the commonid.
    Add Customer and Plant as navigational Attributes.
    Create an infosource with these three fields.
    Unload (in a CSV-file) the commonid with customer and plant from your 3rd party system.
    Load these data to BI into your newly created Z-commonid InfoObject.
    Success,
    Udo

  • Unable to open files from 3rd party websites/applications

    Hi all,
    My new macbook arrived with QT 7.0.4, I used it perfectly for a week with no problem, but now after carrying out a 'software upgrade' via system preferences to QT 7.1.1 I now find that Quicktime will not open hardly anything!!!! Not bad considering Apples information at the download window states that 7.1.1 was implemented to fix bugs that prevented QT from opening files in 3rd party applications. Whats going on?.......
    In the mean time I've had to carry out a system reboot to go back to QT 7.0.4 and now its back to how it should be. What version of Quicktime 7 am I going to have to wait for before this issue if rectified?
    Cheers
    Smarteee

    Thanks all

  • Asha 501 - Suggest 3rd party website for asha 501 ...

    suggest any 3rd party well known trustworthy site to download apps/games for asha 501.
    Thanks for your help in advance...

    Sadly not here stick with official.
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Uploading an Edited iPhoto to 3rd Party Website

    I am unable to find a way to upload an edited iPhoto to a third party website.  This is important to me as a marketing opportunity.  How do I do this?

    From iPhoto, do File > Export from iPhoto's menu.  Send it to, for example, your desktop.  Choose the options you would like for exporting.  Then upload from your desktop, or wherever you exported the photo to.

  • How to access 3rd party website into MS CRM online 2011/2013

    Hi,
    I want to access a form which is in my .net application/website  into the ms crm 2011/2013 on-line versions using web-services.
    Actually from .net form using web-service I have added contacts into CRM but now I want to do it in reverse way, like if I have stocks in my website I want to access them in my CRM 2011/2013.
    jo

    Hello,
    Recheck following articles:
    https://msdn.microsoft.com/en-us/library/gg509030.aspx
    https://mscrmmindfire.wordpress.com/2013/06/14/calling-external-web-service-from-a-crm-2011-plug-in/
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Regarding posting invoice for 3rd party

    Dear Experts,
        I have done third party and did up to grn. While doing invoice for that it is showing an error
    " account 893010 has been set as non-relevant for tax ". how could i post invoice.? where shall i make the correction ? kindly let me know please.
    Regards,
    Prasath

    Hi,
    Please check in t code FS00. Enter your GL account an maintain tax category and do MIRO.
    Regards
    Ram
    Edited by: ramachandran subramanian on Mar 31, 2009 9:41 AM

  • Single Sign-On intergration with 3rd party website portal

    A client of ours for whom we have developed a Business Catalyst (BC) website wants their website's users simultaneously authenticated on their own site and also on a MemberSuite member management website portal, which essentially amounts to a Single Sign-On (SSO) solution. Is there any capability within BC to allow a process like this? Any examples of others who have accomplished similar SSO integrations?

    There is no out of the box solution but it could be done via in a few ways, it would all depend on what the "membersuite member management website portal" could do. The BC database would have to be the master database in terms of username and password as there is no way to log someone in via an API, depending on how the other software is setup and what sort of output it could give and how it's authentication system worked, can you provide more info?

  • GetURL does not work on 3rd party websites

    Alright - I have a banner that I use for a band called Hidden
    Soul. It is used on MySpace, Purevolume, etc for promotion reasons.
    It use to work fine - with a "getURL" method on the banner itself
    embedded in Flash. Now - ever since Microsoft has released
    SP2......none of that works!
    What to do?
    Thanks
    HIDDENSOUL.NET

    Interesting .... your third party one has completely different coding?
    <meta name="Generator" content="Cocoa HTML Writer">
    Looks like you brought it into another editor first?
    Edit: Although I need admit I have yet to try a third party host because it just makes more sense to me to use BC.
    Message was edited by: Brad Lawryk

  • Create Popup Window to 3rd Party Website

    Hello,
    I've added a custom button to the Opporunity, and I've also added an Event Handler for the button.  Inside the event handler, I'd like to costruct a dynamic URL, and finally call the URL in a separate pop-up window.  Does anyone know how to create the pop-up window?
    I looked at the Window Manager Interface Create Popup method off the Component Controller, however, it appears that I need to specify an Inteface View Name, Usage Name, etc., however, I'm trying to create a pop-up to something completely outside of CRM.
    Thanks,
    Matt

    Hi,
    The method described above is fine in most cases, but somtimes you need to construct the URL on base of user input.
    To cope with this issue and to be free of client side javascripting you could make use of component GSURLPOPUP.
    Just add a component usage and supply the needed values to the PARAMS interface node in WD_USAGE_INITIALIZE.
    Opening the popup should be trvial. For an example look here: CL_BT131QI__DETAILS_IMPL->OP_SEARCHPRODUCT().
    PS: I am still wondering how it is possible for Ismail to write from the future As I am just before ten and he is well after midday?!
    cheers Carsten
    Edited by: Carsten Kasper on Sep 2, 2009 9:35 AM

  • PDF form auto-notification/pop-up on 3rd Party PDF readers

    My livecycle generated PDF form wants to work only on Acrobat reader for user input and most importantly when summing numbers in the table field. I currently enable usage rights under Acrobat 9.  The problem is that when people attempt to open the form with 3rd party PDF viewers I receive complaint that the form doesn't work; no numbers are  summed, buttons and fields don't operate.
    I'm searching for a method that will automatically manage and direct a user to execute the form through Adobe reader. The compliment to this statement is that I am searching for a method to detect and alert a user against trying to use a 3rd party pdf viewer. When the user does run the form in Adobe reader, my objective is to hide this particular instruction as it is not relevant. I'm very open to the method of instruction such as throwing a splash screen, adding javascript methods or dynamically writing text across the document, such as a water mark, that informs and instructs on how to successfully use the form.
    Can anyone offer methods, techniques, behind code examples on how to manage this issue?
    Any input and suggestion is greatly appreciated as I am at a road block.
    Thanks,
    DJG

    Hi George,
    Thanks for your interest. I looked carefully at possibly using dynamic form option but decided against adding the unnecessary complexity. Given the simplicity of the form, dynamics isn't needed. To your point, static is the most "robust" solution for my needs. I've tested with with reader from 9 on up and it works..... I just need to educate the user in a way so that this will be usable.
    Often with web searches hitting the right key words is often critical. Problem is that I don't know enough about the PDF model that I may be missing key words. Am I missing something really obvious? In your opinion am I even describing this in the correct manner? Never hurts to get a second opinion.
    Thanks much,
    DJG

  • Receiver Axis Adapter to 3rd party webservice

    Hi,
    My scenario is ABAP Proxy --> PI --> 3rd party webservice using Soap Adapter with Axis protocal.
    I'm getting the following error when attempting to post to the 3rd party web service:
    nested exception is: java.net.SocketException: Connection timed out:could be due to invalid address
    We do have to go through a proxy server to go outside the firewall.  I'm not sure if this may be the issue, but I don't even see where you can set this in the AXIS adapter.
    Can anyone shed some light on the topic?
    Thanks and regards,
    Duke

    Configured as stated below, and the issue was resolved.
    How can I call some service over an HTTP proxy server?
    The Axis's standard and adapter's HTTPSender and CommonsHTTPSender handlers recognize the java's standard network properties (http.proxyHost, http.proxyPort, http.nonProxyHosts) for HTTP proxy setting. Please check that these System properties are correctly set at the J2EE server's System properties page. For more information on how to set Java System properties, please refer to the J2EE server's documentation (SAP Note 710146 How to change J2EE Engine JVM Settings).
    Thanks and regards,
    Duke
    Edited by: Duke on Aug 5, 2010 5:37 PM

Maybe you are looking for

  • Converting mov files to animated gifs

    Basic question: how-to convert MOV files to animated GIF files. I have been searching for free/opensource/shareware to do this but so far no program I found could do this. I'd love someone to answer, definitively, about free/opensource/shareware, but

  • Cost Center not appearing in Hierarchy

    Hello, I am sending an IDoc from an external system into ERP to create new cost centers.  The IDoc comes in successfully and creates the cost center and I can see that it was correctly assigned to the cost center area if I look at the record in KS03.

  • IOS 5.1.1. Vs audio

    After installing IOS 5.1.1 through wifi connection without the PC I tune. The audio is disabled and I cans play any sound. Only rings and calls functioning.

  • Simulation: automatically calculate result of dependent member during input

    Hi, In a EVDRE input schedule we have for example account in the row and let the user input sales qty and unit rate. by multiplying the qty with the unit rate the net sales is calculated. We would like to see the net sales updated directly when the u

  • Multicast on 6500

    I have to enable multicast on the campus network. My network mainly consists of 6500s in Access and Distribution/Core on IOS 12.2(33)SXJ6 code.  Some of the multicast traffic will be within vlan while some inter-vlan. There is no specific vlan for so