How do I manipulate a URL to download?

I have a URL (http://www.SomeImportantURL.com/getInfo?param1="foo"&param2="bar"&param3="bat") which, when I enter it into a browser, returns a download dialog. Using this dialog, I can (optionally) name the file, specify its save location, and then download it. All I have to do is press "Finish" to download.
Now, I want to do this 1000 times, modifying "foo", "bar", and "bat" each time. Obviously, I would rather not sit at my computer and manually name and press "Finish" a thousand times. This should be something easily automated, but I can't see how to use this URL in a Java program to do the download. I have gotten as far as creating a java.net.URL object to hold the URL and calling openConnection() on it, but I really have no idea what I'm doing. What I have done doesn't invoke a browser window or anything like that. I would appreciate someone helping me out with two goals:
1. What specific code do I need to write in order to invoke this download, make the modifications to the filename that I want, and then do the equivalent of pressing "Finish"? I can take care of the obvious URL string concatenation and looping, but I am clueless as to how I actually make my program interact through the internet with the server and get a download going.
2. What larger background pieces am I missing that would allow me to understand what I need to do without asking all of you how to do this?
If it makes a difference, I'm trying to run this on a Windows Vista box.

Stephen8 wrote:
I have a URL (http://www.SomeImportantURL.com/getInfo?param1="foo"&param2="bar"&param3="bat") which, when I enter it into a browser, returns a download dialog.
Its worth noting that this only brings up a form which in turn allows you to download. It does do the download itself.
Using this dialog, I can (optionally) name the file, specify its save location, and then download it. All I have to do is press "Finish" to download.I suspect, yhe page the Finish submits to is the one which does the download.
>
Now, I want to do this 1000 times, modifying "foo", "bar", and "bat" each time. Obviously, I would rather not sit at my computer and manually name and press "Finish" a thousand times. This should be something easily automated, but I can't see how to use this URL in a Java program to do the download.I am pretty sure you are using the wrong URL.
I have gotten as far as creating a java.net.URL object to hold the URL and calling openConnection() on it, but I really have no idea what I'm doing. What I have done doesn't invoke a browser window or anything like that. I would appreciate someone helping me out with two goals:
1. What specific code do I need to write in order to invoke this download, You are submitting a form I guess so you need to get the right URL, and send to it the contents of what the form would send.
make the modifications to the filename that I want, and then do the equivalent of pressing "Finish"? You would be past the point of pressing Finish.
>
2. What larger background pieces am I missing that would allow me to understand what I need to do without asking all of you how to do this?I suggest you search google for example code and turorials on this subject. A simple proxy server might be useful to be able to see the messages which are send and received from your server.

Similar Messages

  • How do I find the URL of a movie I wish for your downloading schedule?

    I have added on the download schedule to your "tools" drop down menu. It asksfor the URL of the movie clip film or whatever. How do I find ths URL. A friend said hover over the movie while it is playing and drag and drop. but this doe not seem to work.

    Only 'On My Mac' calendars can be published to an ordinary web page: MobileMe calendars can be shared but the viewers will need a CalDav client to view them - iCal is of course one such, or Google Calendar for people with Windows. More details here:
    http://www.wilmut.webspace.virginmedia.com/notes/sharedcalendar.html
    There is an unofficial and probably very dodgy method to publish a MobileMe calendar to a web page, but it depends on a bug in iCal so there's no guarantee it won't stop working at any time (and I don't know whether it works in Lion). Use at your own risk: the method is described here -
    http://www.wilmut.webspace.virginmedia.com/notes/icalpublish.html

  • I'm new to Mac and I have a Mac Mini. Could you please tell me how I could paste an URL to a video downloader like "Coolmuster Video Downloader for Mac"? I can copy the url but I could not paste it on the downloader. I appreciate your help to my problem.

    I'm new to Mac and I have a Mac Mini. Could you please tell me how I could paste an URL to a video downloader like "Coolmuster Video Downloader for Mac"? I can copy the url but I could not paste it on the downloader. I appreciate your help to my problem.

    Is this happing because the external is formatted to PC and not mac?
    Yes that is correct.
    Will I need to get a mac external hard drive if I wish to continue to save my documents like this?
    If you no longer use a PC you could format this drive for the Mac. However be aware that formatting a drive will erase all the data on it. So you would need someplace to copy the data off this drive to while you did the re-format and then you could copy the data back.
    You could get another drive, format it for the Mac and copy the data to it. Then re-format the original drive and use it as a backup drive. Always good to have backups.
    Post back with the drive type and size of the current drive, if you are doing backups now and how and if you still need to access this drive from a PC.
    regards

  • How do I manipulate the release date in my iTunes TV shows that I have downloaded myself?

    How do I manipulate the release date in my iTunes TV shows?
    I have downloaded and added them myslef.
    Is there anyway to do this?

    As far as I know you can't change a TV programme's release date, I think that it's a protected field

  • How would I create a link to download an image to the harddrive from within edge?

    I'm using this code in an on-click event currently, but it just opens the image in a new page, it doesn't download the file to the user's computer.
    window.open("URL HERE", "download", "_blank");
    I also tried using this code on a text-box, but it didn't do anything. i'm sure it's missing some on-click thing, but i'm not sure how to phrase that.
    sym.$("Text4").html("<a href='URL HERE' download>");
    thanks!

    Here is the sample.
    download image.zip - Box

  • How can i get getwayed url string using pluggable nav in news portlet?

    hi.
    How can i get getwayed url string using pluggable nav in news portlet?
    A code just like below is what I want.
    <param value="param=http://.../portal/server.pt/gateway/PTARGS_.../http/...">
    I tryed the following, but didn't work as I wanted.
    1.<param value="<pcs:valueexpr='var'/>">
    -> transformed. but I want the prefix 'param=' in the enquoted string's too.
    2. <param value="param=<pcs:valueexpr='var'/>">
    -> not transformed.
    Any idea?
    Hiroyuki

    Hi all,
    We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
    I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
    Performance Tuning & Profiling:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
    Using JRockit tools:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
    Diagnostics & Troubleshooting
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
    Best Regards,
    Tuva
    JRockit PM

  • URL for Downloading Licensed FlashPlayer Does Not Work

    I reapplied for a license to distribute FlashPlayer back in October and was granted a license and a specific URL to download FlashPlayer for distribution on our intranet.  The URL does not work and instead of downloading FlashPlayer the only option is to apply for another license.  I attempted to engage Adobe via Chat and they said I have to post here, but this does not make a lot of sense since the email with the license said the URL for downloading may not be shared with anyone, hence why I am not posting here.
    So have others received a license from Adobe with a non-working URL?  How did you get someone at Adobe to respond?

    Hi Eddie,
    I will forward this to the Licensing folks and will post back when I have a response.
    Maria

  • How do I get a url from quicktime?

    I'm using iWeb to host my podcast. http://web.me.com/krushjudgement/Site/Giant-SizePodcast/Giant-SizePodcast.html
    I'd like to have people visit my blogspot for updates. http://giantsizepodcast.blogspot.com/
    Right now I'm using podtrac to stream, but I realized it might be easier just to stream the quicktime versions from my iWeb. I'd like to embed the episodes in quicktime format right onto my blog posts. I've found embed codes, but I don't know how to get the proper urls from iWeb.
    Any ideas?

    Are you trying to retrieve the material?
    If so, open the page in Firefox-->Firefox Menu-->File-->Save Page As-->Save As: Web Page Complete...save to a folder. Firefox will download the html, javascript, css, images and the mp3 audio.
    It took a few minutes for the page to load and another minute or two to download... And I'm on a very fast connection. I was getting around 5-6 MBs during the download.
    The mp3 is 5 levels above the html. I have no idea what level or folder the video is at...
    Message was edited by: David M Brewer

  • How come every time i try to download a app  it says Your apple id has been disabled. I already reset my pass word and it keeps saying the same message?

    How come every time i try to download a app  it says Your apple id has been disabled. I already reset my pass word and it keeps saying the same message?

    Apple - Support - iTunes - Contact Us

  • I share an itunes account with 3 users. How can I find out which person downloaded a certain app?

    I share an itunes account with 3 users. How can I find out which person downloaded a certain app?

    Agile,
    Any of the above will work, depending how you would like to set it up.
    Given that kids tend to eventually grow up and be independent, the best long term answer for most people is to let her have her own account and her own library as soon as she can handle it.  Keep in mind that content purchased from the iTunes Store is permanently tied to the account from which it was originally purchased, so separating later is a challenge.
    If you want to sync multiple devices to the same library, that will work.  Or if you want separate libraries (as I would recommend), they can be either on separate computers or on separate Windows user accounts on the same PC.
    For the name change:  Connect the device.  When the name appears in the left sidebar of iTunes, highlight it and change it.

  • How can I find the URL for an iCal calendar in iCloud so I can make a link to it on a web page.

    I have a single iCal calendar that I want people to access through my webpage.  How can I find the URL so that they can view the calendar without having to subscribe to it.  I converted to iCloud from .Mac and I can see that changes to this calendar are not showing up.

    Mmmh.. i see... I don't know wether it is possible for people just check calendars without subscribing to them... I have been sharing some calendars in my website (maybe you can have a look at it in order to check wether it could be a possible solution for you)
      http://web.me.com/andreabruschi/englishplanet/English_Courses.html
    Cheers
    Andrea

  • How do I turn off "your recent download with your apple id" emails? Annoyingly often and they fill up my inbox.

    How do I turn off "your recent download with your apple id" emails? Annoyingly often and they fill up my inbox.  Is there a way to unsubscribe from these?

    It is in Settings>iTunes & App Stores to change automatic downloads. But it isn't your device that needs to be changed if you are the one that made the download. He needs to turn off the setting for automatic downloads on his phone. I'm guessing here, but you are all sharing the same Apple ID?

  • How do you stop a book from downloading in iBooks.  It has been downloading for 2 days

    How do I stop a book from downloading in iBooks   It has been downloading for 2 days

    Perform a "hard reset" on the device by pressing down and holding the home button and the sleep/wake button for up to 30secs. until you see a black screen with the Apple logo, then release.
    Then test to see if it solved the problem.

  • How can i get my Ipad to download videos that run on flash

    how can I get my IPad to download videos that run on flash

    You don't.
    Adobe does not make a flash player for ipad.
    Do a forum search as this is discussed over and over and over and over and over again on these forums.

  • How many computers can i load my downloaded logic pro on? and can i sell my logic 8... or do i need it?

    how many computers can i load my downloaded logic pro on? and can i sell my logic 8... or do i need it?

    This is the mainadvantage of purchaseing apps from the app store:
    Go to the "App Store" app under the Apple menu.
    Login with your Apple ID account (the one you purchase Logic)
    Go to the Purchases tab where you find all the apps that you purchased with that Apple ID
    Any app that is not installed on the current computer is ready for download
    Download and install the app
    Done.
    Hoe that helps
    Edgar Rothermich

Maybe you are looking for