This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

forwarded url ?!?

Old posts that have not been replied to for several years.
Locked
t
thakillah

forwarded url ?!?

Post by thakillah »

Was wondering if someone could help me out with a little prob :)
Wrote a little script which searches a website search engine nicely, and msg the result into the channel.
But there is one thing i wanna change, it retrieves a search engine like url.

Code: Select all

for example http://searchengine/search9874392849090925398729837523
but if you open up the link, youre get redirected to the proper url of the page.
Now my question is, how can i can let my eggbot open up the searchengine url and retrieve the new url it gets redirected to.

Thnx in advance :)
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

open a socks connection, the returned data should give you the redirect info
t
thakillah

Post by thakillah »

mmm oke, i get youre point.

But i am not very familiar with socks, could you help me out a bit with the code?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Check out any google script that only gives you the "I feel lucky" result. It will contain code doing exactly what you need. (Fetching the "Location" header)
Have you ever read "The Manual"?
Locked