Try looking into the HEAD request of GM_xmlhttpRequest and grab the location header that gets returned (I'm assuming that the 302s will be followed and IDK what happens with chained redirects).
Disclaimer: just what I'd look into researching, not necessarily a correct answer =) On 12/7/10, cwal <[email protected]> wrote: > No one has any ideas? is this not possible? > > On Nov 25, 8:39 pm, cwal <[email protected]> wrote: >> i have been trying to follow a 302 redirect from a website (hotfile). >> For the moment to have the redirected link, a user must begin the >> download then "copy download link" i have tried a few variations of a >> GET GM_xmlhttprequest but seems to always give back the original >> download page. ideally id like for a user to visit a hotfile download >> page, and have a script follow the link located in the HTML of the >> page, then display the full (redirected) link at the bottom of the >> page. >> >> is anyone able to point me in the right direction? >> >> any help is appreciated. >> >> download links for hotfile are as followed: >> >> hotfile.com/dl = the link which brings you to the download page >> hotfile.com/get = the link that when clicked begins the download >> s123.hotfile.com = the ACTUAL download link (the one im trying to >> isolate) > > -- > You received this message because you are subscribed to the Google Groups > "greasemonkey-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/greasemonkey-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
