Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How locate a URL for a download script?
How locate a URL for a download script? [message #1088249] Fri, 16 August 2013 20:26 Go to next message
Al Koch is currently offline Al KochFriend
Messages: 62
Registered: August 2011
Member
Hello,

I have an ant script that references a now invalid URL (for downloading Helios). I cannot discover the method by which a download's URL is determined. That is, I need to update this script to download the Kepler Wiin32 .zip but I don't understand how to locate this. Let me be clear:

1) I have no problem following the web page menu items to navigate to a "manual" download of Kepler. What I need is a URL that works for download in an ant script. (Note that the URL for a "manual" download triggers display of a page of mirror sites - that is why that URL doesn't work in the ant script.) For reference, here is what the the old, invalid (Helios) download URL looks like: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-win32.zip. (No, just replacing the two instances of "Helios" with "Kepler" does not work!)

2) Simply providing the correct "ant script download" URL for Kepler would certainly be useful but what I am really asking is how you would determine what that URL is. That way, I can answer this question when I next need to download something new.

Thank you,
Al
Re: How locate a URL for a download script? [message #1088271 is a reply to message #1088249] Fri, 16 August 2013 21:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31839
Registered: July 2009
Senior Member
Yes,
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/R/eclipse-java-kepler-R-win32.zip
brings up the mirror page, but if you pick one of the links on that
page, then you have a direct link, e.g., this is the direct link for the
foundation side in Canada (from the bottom of the mirror page):
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/R/eclipse-java-kepler-R-win32.zip&mirror_id=1



On 16/08/2013 10:26 PM, AlKoch Mising name wrote:
> Hello,
>
> I have an ant script that references a now invalid URL (for
> downloading Helios). I cannot discover the method by which a
> download's URL is determined. That is, I need to update this script
> to download the Kepler Wiin32 .zip but I don't understand how to
> locate this. Let me be clear:
>
> 1) I have no problem following the web page menu items to navigate to
> a "manual" download of Kepler. What I need is a URL that works for
> download in an ant script. (Note that the URL for a "manual" download
> triggers display of a page of mirror sites - that is why that URL
> doesn't work in the ant script.) For reference, here is what the the
> old, invalid (Helios) download URL looks like:
> http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-win32.zip.
> (No, just replacing the two instances of "Helios" with "Kepler" does
> not work!)
>
> 2) Simply providing the correct "ant script download" URL for Kepler
> would certainly be useful but what I am really asking is how you would
> determine what that URL is. That way, I can answer this question when
> I next need to download something new.
>
> Thank you,
> Al


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How locate a URL for a download script? [message #1088297 is a reply to message #1088271] Fri, 16 August 2013 22:12 Go to previous messageGo to next message
Al Koch is currently offline Al KochFriend
Messages: 62
Registered: August 2011
Member
Hi Ed,

Thanks for the quick reply, but unfortunately that doesn't work. If you manually feed that URL to your browser you'll see that in addition to downloading the .zip you 1st get a new HTML page. When the ant script executes that URL the 1st thing it receives is that HTML and it uses that to create the ".zip file" it is expecting. Then, of course, it fails on the next step when it tries to unzip that file.

The "Eclipse folks" must be putting these downloads in a special "repository/archive" for exactly this purpose but, as I said, I can't figure out where that is. Any other ideas?

Thanks again,
Al
Re: How locate a URL for a download script? [message #1088758 is a reply to message #1088297] Sat, 17 August 2013 16:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31839
Registered: July 2009
Senior Member
Al,

I see what you mean. What I tried was doing a on
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/R/eclipse-standard-kepler-R-win32.zip&mirror_id=1
was "View Page Source" (in Firefox) and in that source I found this:

<META HTTP-EQUIV="Refresh"CONTENT="0;URL=http://download.eclipse.org/technology/epp/downloads/release/kepler/R/eclipse-standard-kepler-R-win32.zip">

So I think it's the
http://download.eclipse.org/technology/epp/downloads/release/kepler/R/eclipse-standard-kepler-R-win32.zip
link that you want (and now you know how to find it).


On 17/08/2013 12:12 AM, AlKoch Mising name wrote:
> Hi Ed,
>
> Thanks for the quick reply, but unfortunately that doesn't work. If
> you manually feed that URL to your browser you'll see that in addition
> to downloading the .zip you 1st get a new HTML page. When the ant
> script executes that URL the 1st thing it receives is that HTML and it
> uses that to create the ".zip file" it is expecting. Then, of course,
> it fails on the next step when it tries to unzip that file.
>
> The "Eclipse folks" must be putting these downloads in a special
> "repository/archive" for exactly this purpose but, as I said, I can't
> figure out where that is. Any other ideas?
>
> Thanks again,
> Al
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How locate a URL for a download script? [message #1089476 is a reply to message #1088758] Sun, 18 August 2013 20:26 Go to previous message
Al Koch is currently offline Al KochFriend
Messages: 62
Registered: August 2011
Member
Hi Ed,

Thanks for the quick response - and on a weekend too!

That's a clever way to figure out the URL and this one works. While using your method is simple and pretty straightforward it's hard to believe that this is the Eclipse Org's "official" method for getting the URL for automated downloads. Do you have any idea why there isn't an (obvious) page somewhere listing these URLs?

Thanks again for your help.

Al
Previous Topic:Config error
Next Topic:JSON on Android
Goto Forum:
  


Current Time: Tue Apr 20 02:32:16 GMT 2021

Powered by FUDForum. Page generated in 0.03556 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top