ame1011 0 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] Share this post Link to post Share on other sites
lod3n 4 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] Share this post Link to post Share on other sites
ame1011 0 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] Share this post Link to post Share on other sites
nitekram 68 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 2AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDFLearning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming TipsExcel ChangesControlHover.UDFGDI_PlusDraw_On_ScreenGDI BasicsGDI_More_BasicsGDI RotateGDI GraphGDI CheckExistingItemsGDI TrajectoryReplace $ghGDIPDll with $__g_hGDIPDllDLL 101?Array via ObjectGDI SwimlaneGDI Plus French 101 SiteGDI Examples UEZGDI Basic ClockGDI DetectionTernary operator Share this post Link to post Share on other sites
DaleHohm 65 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, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object modelAutomate input type=file (Related)Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better?IE.au3 issues with Vista - WorkaroundsSciTe 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
ame1011 0 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] Share this post Link to post Share on other sites
lod3n 4 Posted August 23, 2006 Cool! I didn't know that... [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Share this post Link to post Share on other sites