Sign in to follow this  
Followers 0
ame1011

How to get the referrer URL?

7 posts in this topic

Like the title says,

Is there any way that I can get the referrer url from a webpage? Possibly using the IE.au3 udf? I looked and couldn't find how to do this.


[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post


Link to post
Share on other sites



thanks, ill have a look.

The reason I asked is because using the firefox 'page info' feature, I was able to see the referrer of the page. The referrer url in question contains some php values being passed that I could really use. Since firefox was able to get this information, I thought that IE could somehow extract this URL.


[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post


Link to post
Share on other sites

thanks, ill have a look.

The reason I asked is because using the firefox 'page info' feature, I was able to see the referrer of the page. The referrer url in question contains some php values being passed that I could really use. Since firefox was able to get this information, I thought that IE could somehow extract this URL.

You might not be able to extract it, but you can (if you have fast fingers) - take a screen shot right before it takes you to the next website.

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

Like the title says,

Is there any way that I can get the referrer url from a webpage? Possibly using the IE.au3 udf? I looked and couldn't find how to do this.

I'd never looked at this before, but it turns out taht referrer is a document property and easily accessible. This would be a good addition to _IEPropertyGet... here is an example:

#include <IE.au3>
$oIE = _IEAttach("AutoIt")
ConsoleWrite($oIE.document.referrer & @CR)

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I'd never looked at this before, but it turns out taht referrer is a document property and easily accessible. This would be a good addition to _IEPropertyGet... here is an example:

#include <IE.au3>
$oIE = _IEAttach("AutoIt")
ConsoleWrite($oIE.document.referrer & @CR)

Dale

thanks dale,

actually i spent a good 10 min rereading _IEPropertyGet when looking for this functionality thinking that it would be the most logical place to find it.


[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0