homepage Welcome to WebmasterWorld Guest from 54.242.231.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
retrieve real target links from redirects
hanyaz




msg:3857850
 10:31 pm on Feb 25, 2009 (gmt 0)

hello
I got a page where links are all redirects, i want to have the real link before going and visiting the target page. Is there a script that can help me to do so ?
My links look like that :
http://example.com/links/jump.cgi?ID=4615

Thanks in advance
Hanyaz

[edited by: phranque at 12:37 am (utc) on Feb. 26, 2009]
[edit reason] exemplified url [/edit]

 

krugs




msg:3857910
 11:59 pm on Feb 25, 2009 (gmt 0)

That is not a redirect link. Its a link to a script. There is no telling what that link might do.

phranque




msg:3857937
 12:37 am on Feb 26, 2009 (gmt 0)

that could possibly be the url of a script that externally redirects to another url.
if that were the case, you could capture the response to determine what the redirection url is.
you could do this with various tools such as the Live HTTP Headers add-on in FF, or the lwp-request command line tool, or a perl script using the LWP::UserAgent
and HTTP::Request perl modules...

hanyaz




msg:3858061
 8:02 am on Feb 26, 2009 (gmt 0)

thanks guys with live http headers it works

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved