Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

following re-direction

 [1/2] from: rchristiansen::pop::isdfa::sei-it::com at: 28-Dec-2000 17:12


There is a software site where they use some sort of re-direct to send you to the correct URL for a download. For example, here is the URL which appears on the page and which the browser sends back to the server requesting the file... http://www.bebits.com/bob/4515/3KBnewsreader.zip The web server receives this URL and then re-directs the request to a different URL. In this case I happen to know the URL (because it is my software.) http://www.beosjournal.com/rebol/3KBnewsreader.zip In the console session, you can see the re-direction, but REBOL only returns the domain and not the sub-directories nor the destination file name.
>> read http://www.bebits.com/bob/4515/3KBnewsreader.zip
connecting to: www.bebits.com connecting to: www.beosjournal.com == {PK^C^D^T^@^@^@^H^@^B(կ^_... Using REBOL, how can I find out the full URL I have been re-directed to in this situation? Thanks. -Ryan

 [2/2] from: larry:ecotope at: 28-Dec-2000 16:39


Hi Ryan Here is one way to get the redirected URL:
>> port: open http://www.bebits.com/bob/4515/3KBnewsreader.zip
connecting to: www.bebits.com connecting to: www.beosjournal.com
>> >> probe port/url
http://www.beosjournal.com/rebol/3KBnewsreader.zip == "http://www.beosjournal.com/rebol/3KBnewsreader.zip"
>> close port >>
HTH -Larry ----- Original Message ----- From: Ryan C. Christiansen <[RChristiansen--pop--isdfa--sei-it--com]> To: <[rebol-list--rebol--com]> Sent: Thursday, December 28, 2000 3:12 PM Subject: [REBOL] following re-direction There is a software site where they use some sort of re-direct to send you to the correct URL for a download. For example, here is the URL which appears on the page and which the browser sends back to the server requesting the file... http://www.bebits.com/bob/4515/3KBnewsreader.zip The web server receives this URL and then re-directs the request to a different URL. In this case I happen to know the URL (because it is my software.) http://www.beosjournal.com/rebol/3KBnewsreader.zip In the console session, you can see the re-direction, but REBOL only returns the domain and not the sub-directories nor the destination file name.
>> read http://www.bebits.com/bob/4515/3KBnewsreader.zip
connecting to: www.bebits.com connecting to: www.beosjournal.com == {PK^C^D^T^@^@^@^H^@?^B\(U/g^_... Using REBOL, how can I find out the full URL I have been re-directed to in this situation? Thanks. -Ryan