ame1011 Posted August 23, 2006 Share Posted August 23, 2006 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] Link to comment Share on other sites More sharing options...
lod3n Posted August 23, 2006 Share Posted August 23, 2006 No, that's something that's done AT the webserver hosting the page. Take a look at this.http://en.wikipedia.org/wiki/Referrer [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
ame1011 Posted August 23, 2006 Author Share Posted August 23, 2006 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] Link to comment Share on other sites More sharing options...
nitekram Posted August 23, 2006 Share Posted August 23, 2006 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. 2¢ 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." 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 Link to comment Share on other sites More sharing options...
DaleHohm Posted August 23, 2006 Share Posted August 23, 2006 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 Link to comment Share on other sites More sharing options...
ame1011 Posted August 23, 2006 Author Share Posted August 23, 2006 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] Link to comment Share on other sites More sharing options...
lod3n Posted August 23, 2006 Share Posted August 23, 2006 Cool! I didn't know that... [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now