ogloed Posted October 4, 2012 Share Posted October 4, 2012 There is a website that generates a CSV file by click and gives this file for download. I wanted to make a universal solution for this. I tried: 1. InetGet - doesn't work. Link is always the same, but it looks like it won't give CSV for download without data from IE session. 2. Third-party download manager (Orbit Downloader, Free Download Manager, etc). It catches the link, but still without IE session data it can't download anything. 3. IE "Download file" window. This works better, but I can't catch all the differences between IE 6, 7, 8 and 9. Also, 9 can be 32 bit and 64 bit. Is there any sane solution for this? Thank you. Link to comment Share on other sites More sharing options...
DaleHohm Posted October 4, 2012 Share Posted October 4, 2012 XMLHttpRequest. I'll dig up an example for you tomorrow. Dale ogloed 1 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...
ogloed Posted October 5, 2012 Author Share Posted October 5, 2012 DaleHohm, thank you! Looking forward for an example! Link to comment Share on other sites More sharing options...
DaleHohm Posted October 5, 2012 Share Posted October 5, 2012 (edited) This is stripped from code I use in a production app: _IEErrorHandlerRegister() ; Instantiate AJAX object in browser and get reference $oIE.document.parentWindow.eval("var oXHR = new XMLHttpRequest();") $oXHR = $oIE.document.parentWindow.eval("oXHR;") ; The URL of the file as referenced on the page $sURL = "your-url" ; Capture the file via Ajax $oXHR.open("GET", $sURL, False) $oXHR.send() If @error = $_IEStatus_ComError Then ConsoleWrite("COM Error downloading file." & @CRLF) EndIf $sRawFile = $oXHR.responseText ; Save raw file $s_file = @ScriptDir & "downloaded-file.ext" $h_file = FileOpen($s_file, 2) If $h_file = -1 Then ConsoleWrite("Failed to open: " & $s_file & " to output raw file") Else FileWrite($h_file, $sRawFile) FileClose($h_file) EndIf Edited October 5, 2012 by DaleHohm ogloed 1 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...
ogloed Posted October 5, 2012 Author Share Posted October 5, 2012 (edited) DaleHohm, thank you very much, this is really useful, but for my other script (at last it's done!).I made a little research on what I'm currently working on, and I saw a form, which is submitted when the "download" button is clicked. The form is little bit complex and I'm not quite sure how to submit it and receive a file. Can you give any advice on this please?Update: the form is generated _after_ "download" button is clicked. That's why I didn't notice the form before.Update 2: I suppose, I should do this: trigger the form generation, get values of all inputs and submit all this by WinHTTP. But this is just a theory. I don't know how to do this practically. Please correct me if I'm wrong and point me to a working example. Thank you. Edited October 7, 2012 by ogloed Link to comment Share on other sites More sharing options...
DaleHohm Posted October 8, 2012 Share Posted October 8, 2012 You haven't described your situation well enough for me to undestand your problem. 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...
ogloed Posted October 8, 2012 Author Share Posted October 8, 2012 You haven't described your situation well enough for me to undestand your problem. Dale OK. This is Google AdWords Keyword Tool web-based application. After search is done there is an option do download search results as CSV file. When "Download" button is pressed, a form is generated: <form target="FormPanel_com.google.ads.apps.targetingideas.client.TargetingIdeas_2" method="POST" action="file/DownloadSelected"><div><input type="hidden" name="__u" value="5126515877"><input type="hidden" name="__c" value="5552199317"><input type="hidden" name="format" value="CSV"><input type="hidden" name="selectors" value="7|1|35|https://adwords.google.com/o/Targeting/|86ECC365C29F3EE06CF0B0AA9274F213|28k|1vb|28p|1ep|en_US|1gh|1wx|1vx|28f|1vy|EXTRACTED_FROM_WEBPAGE|AVERAGE_MONTHLY_SEARCHES_WITH_AFS|AD_SHARE|COMPETITION|SUGGESTED_BID|KEYWORD|GLOBAL_MONTHLY_SEARCHES|AVERAGE_TARGETED_MONTHLY_SEARCHES|SEARCH_SHARE|TARGETED_MONTHLY_SEARCHES|27q|1xn|1wt|1xz|28m|in|1xj|204|United States|US|1yg|2a4|http://www.imdb.com|1|2|3|4|5|232|6|0|7|0|8|2147483647|0|0|9|0|0|10|0|11|10|12|13|12|14|12|15|12|16|12|17|12|18|12|19|12|20|12|21|12|22|23|11|4|24|25|4|26|27|28|2|29|27|30|31|0|1|32|0|33|0|27|34|35|0|"><input type="hidden" name="currency" value="UAH"><input type="hidden" name="ideaRequestType" value="KEYWORD_IDEAS"><input type="hidden" name="enabledFeatures" value="BundleSamples,CampaignNavigator,CellTable,ConceptBundling,CreateAdGroups,CurrencyPicker,DefaultToConcepts,DownloadAllSuggestedAdGroupsSingleRequest,GeoPickerV2,IcsCaptchaMessage,KeywordIdeasVisualizations,LabelService,LoadNegativesFromCampaignAndAdgroup,MobileAppPlacements,OneBox,PersistPreferences,SavedAdGroups,SeedKeywordsTable,trafficEstimatorSunset,urlBundles,AverageMonthlyTrafficWithAfs,ExportToDraftboard,StarredIdeasEditing,SuggestedBid,CttEnabledForAllUsers,RollingThunder"><input type="hidden" name="countryName" value="United States"><input type="hidden" name="ideas" value="7|1|116|https://adwords.google.com/o/Targeting/|86ECC365C29F3EE06CF0B0AA9274F213|28d|25s|28l|25t|adGroupName|1f7|My keyword ideas|1v9|2ae|1vy|KEYWORD|1eu|im|in|internet moviedatabase|the shaw shank redemption|planes trains and auto mobiles|horrible bosses 2011|internet movie db|terminator the judgment day|imdb internet movie data base|killer clowns for outer space|on her majesty's secret service|the shaw shank|killerclowns from outer space|on her majesty secret service|finding forrester 2000|gnomeo og juliet|happyfeet two|emmet otter jug band christmas|emmet otter jugband christmas|confessions of a shop aholic|akshay ku mar|jonah the veggie tales movie|joergen leth|night at the museum battle for the smithsonian|planes trains & automobiles 1987|big momma's house|night of the museum battle of the smithsonian|jonah a veggie tales movie|the terminator 2 judgment day|warhorse|killer klowns from outer space 1988|night at the museum battle at the smithsonian|batman og robin 1997|the shaw shank redemtion|the family the preys|cowards bend the knee or the blue hands|house with 1000 corpses|the sorcerer apprentice 2010|bonnie & clyde 1967|roger&me|better off dead 1985|anchorman the legend of ron burgandy|barry lyndon 1975|america sweethearts|planes trains and automobiles 1987|shaw shank redemtion|jörgen leth|gnomeo et juliet|the silver linings play book|episode i the phantom menace|terminator ii judgement day|turner og hooch|spongebob de movie|red tails 2012 imdb|emmet otter jug band|terminator ii judgment day|the ladykillers 2004|gnomeo ve juliet|imdb the extra man|singlewhitefemale|imdb le divorce|a lot like love 2005|the extra man 2010|cheaper of the dozen|night in a museum 2|ramona og beezus|night and the museum 2|lorenzo a oil|the shawhank redemption|the sorcerers apprentice 2010 imdb|episode 1 the phantom menace|plains trains & automobiles|thx 1138 1971|message and a bottle|gnomeo an juliet|life in wartime|the sorcerer's apprentice 2010|internet movie datebase|le notti de cabiria|episode iii revenge of the sith|kinder garden cop|the last mimzy 2007|roger and me 1989|granny o grimms sleeping beauty|message in a bottle|my mexican shiva|terminator 2 judgment|granny o grimm sleeping beauty|boyzn the hood|madea's big happy family|silver linings play book|the tale of the despereaux|sophie's choice 1982|the killer klowns from outer space|the terminator 2 judgement day|nights in cabiria|shaw shank redeption|whoopi gold berg|but iam a cheerleader|lovers in the arctic circle|the triplets of bellville|the showshank redemption|1|2|3|100|4|5|6|7|8|9|10|11|1|12|13|14|15|0|16|2|17|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|18|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|19|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|20|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|21|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|22|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|23|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|24|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|25|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|26|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|27|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|28|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|29|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|30|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|31|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|32|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|33|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|34|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|35|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|36|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|37|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|38|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|39|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|40|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|41|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|42|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|43|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|44|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|45|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|46|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|47|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|48|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|49|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|50|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|51|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|52|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|53|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|54|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|55|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|56|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|57|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|58|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|59|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|60|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|61|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|62|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|63|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|64|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|65|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|66|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|67|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|68|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|69|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|70|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|71|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|72|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|73|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|74|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|75|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|76|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|77|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|78|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|79|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|80|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|81|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|82|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|83|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|84|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|85|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|86|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|87|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|88|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|89|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|90|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|91|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|92|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|93|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|94|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|95|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|96|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|97|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|98|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|99|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|100|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|101|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|102|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|103|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|104|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|105|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|106|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|107|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|108|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|109|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|110|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|111|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|112|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|113|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|114|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|115|0|0|0|0|4|5|-4|8|9|10|11|1|-8|14|15|0|-11|116|0|0|0|0|"><input type="hidden" name="token" value="f8KVmcpMFZFKICS1a6qjfYYke9A:1349706008721"></div></form> and then submitted. And in reply IE gets a CSV file with results. How can _this_ be automated? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 8, 2012 Share Posted October 8, 2012 You're making it too hard for me to help you. Simplify. 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...
ogloed Posted October 8, 2012 Author Share Posted October 8, 2012 OK. For example we have a form: <form method="POST" action="/script.php"> <input type="hidden" name="format" value="CSV"> <input type="submit" value="Submit"> </form> When you click "Submit", IE starts downloading a file. Question: how to do this without IE (submit a form an receive a file), like in your example with XMLHttpRequest? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 8, 2012 Share Posted October 8, 2012 Everything depends on script.php and not on the form, except that it passes input to the script. So, there is nothing in what you have supplied that can provide an answer. You may want to use DebugBar and watch the Http(s) tab for more clues. 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...
ogloed Posted October 8, 2012 Author Share Posted October 8, 2012 (edited) Everything depends on script.php and not on the form, except that it passes input to the script. So, there is nothing in what you have supplied that can provide an answer. You may want to use DebugBar and watch the Http(s) tab for more clues. Dale Only if I could understand this DebugBar... You say that I didn't provide information for answer. Maybe you can suggest what have I missed? Update: anyway, how do I make a POST request to script.php? Update 2: I have this in HTTP(s) tab: POST /o/Targeting/file/DownloadSelected HTTP/1.1 Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-xpsdocument, */* Referer: https://adwords.google.com/o/Targeting/Explorer?__u=5126515877&__c=5552199317 Accept-Language: uk User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate Host: adwords.google.com Content-Length: 11072 Connection: Keep-Alive Cache-Control: no-cache Cookie: [CENSORED] __u=5126515877&__c=5552199317&format=CSV&selectors=7%7C1%7C42%7Chttps%3A%2F%2Fadwords.google.com%2Fo%2FTargeting%2F%7CD791614D1FF6AE06DCB187D9A088DDA9%7C28k%7C1vb%7C28p%7C1ep%7Cen_US%7C1gh%7C1wx%7C1vx%7C28f%7C1vy%7CKEYWORD%7CCOMPETITION%7CGLOBAL_MONTHLY_SEARCHES%7CAVERAGE_TARGETED_MONTHLY_SEARCHES%7CAD_SHARE%7CAVERAGE_MONTHLY_SEARCHES_WITH_AFS%7CSEARCH_SHARE%7CSUGGESTED_BID%7CTARGETED_MONTHLY_SEARCHES%7CEXTRACTED_FROM_WEBPAGE%7C27q%7C1yg%7C28m%7C2a4%7Chttp%3A%2F%2Fwww.imdb.com%7C1xj%7C204%7CGermany%7CDE%7C1y2%7C206%7CPortuguese%7Cpt%7C1xn%7C1wt%7C1xz%7Cin%7C1he%7C1vu%7C1hb%7C1%7C2%7C3%7C4%7C5%7C232%7C6%7C0%7C7%7C0%7C8%7C2147483647%7C0%7C0%7C9%7C0%7C0%7C10%7C0%7C11%7C10%7C12%7C13%7C12%7C14%7C12%7C15%7C12%7C16%7C12%7C17%7C12%7C18%7C12%7C19%7C12%7C20%7C12%7C21%7C12%7C22%7C23%7C11%7C5%7C24%7C0%7C25%7C26%7C27%7C28%7C25%7C29%7C30%7C0%7C1%7C31%7C0%7C32%7C25%7C33%7C34%7C35%7C36%7C37%7C4%7C38%7C11%7C2%7C39%7C0%7C39%7C1%7C40%7C41%7C32%7C3%7C-37%7C42%7C1%7C3%7C-39%7C¤cy=UAH&ideaRequestType=KEYWORD_IDEAS&enabledFeatures=BundleSamples%2CCampaignNavigator%2CCellTable%2CConceptBundling%2CCreateAdGroups%2CCurrencyPicker%2CDefaultToConcepts%2CDownloadAllSuggestedAdGroupsSingleRequest%2CGeoPickerV2%2CIcsCaptchaMessage%2CKeywordIdeasVisualizations%2CLabelService%2CLoadNegativesFromCampaignAndAdgroup%2CMobileAppPlacements%2COneBox%2CPersistPreferences%2CSavedAdGroups%2CSeedKeywordsTable%2CtrafficEstimatorSunset%2CurlBundles%2CAverageMonthlyTrafficWithAfs%2CExportToDraftboard%2CStarredIdeasEditing%2CSuggestedBid%2CCttEnabledForAllUsers%2CRollingThunder&countryName=Germany&ideas=7%7C1%7C66%7Chttps%3A%2F%2Fadwords.google.com%2Fo%2FTargeting%2F%7CD791614D1FF6AE06DCB187D9A088DDA9%7C28d%7C25s%7C28l%7C25t%7CadGroupName%7C1f7%7CMy+keyword+ideas%7C1v9%7C2ae%7C1vy%7CKEYWORD%7C1eu%7Cim%7Cin%7Cbarry+lyndon+1975%7Cthx+1138+1971%7Cmessage+in+a+bottle%7Ccity+lights+1931%7Cthe+silver+linings+playbook%7Cthe+inner+life+of+martin+frost%7Cjes%C3%BAs+franco%7Cmixed+nuts%7Cgore+verbinsky%7C310+to%7Csmokey+and+the+bandit+ii%7Cbueller+day+off%7Cslightly+single+in+la%7Camos+%26+andrew%7Cthe+delta+force+1986%7Ccristovao+colombo+o+enigma%7Ccrist%C3%B3v%C3%A3o+colombo+o+enigma%7Ccharles+chaplin+biography%7Cparadise+hawaiian+style%7Cthe+extra+man+imdb%7Ckillers+klowns+from+outer+space%7Cfritz+the+cat+1972%7Ccelebrity+rehab%7Co+treinador+carter%7Ckimberly+pierce%7Cstar+trek+7+generations%7Cgabbeh%7Camadeus+dvd%7Chappy+feet+ii%7Cm%C3%A1rio+lanza%7Cferris+buellers%7Crobin+hood+1922%7Cthe+hard+times+of+rj%7Cmonty+python+almost+the+truth%7Cluiz+fernando+pena%7Cle+maitre+de+musique%7Cmusical+my+fair+lady%7Cnew+year+s+eve+in+new+york%7Cgrand+hote%7Co+c%C3%A9u+de+suely+2006%7Croberto+g%C3%B3mez+bolanos%7Cride+in+the+whirlwind%7Ciwant+more+viewers%7Cdr+dolitte+4%7Cflesh+gordon+1974%7Cla+vitta+e+bela%7Cantonio+vivaldi+un+prince+%C3%A0+venise%7Ccarros+2+cars+2%7Crehab+dr+drew%7Ctwist+2005%7C1%7C2%7C3%7C100%7C4%7C5%7C6%7C7%7C8%7C9%7C10%7C11%7C1%7C12%7C13%7C14%7C15%7C0%7C16%7C0%7C17%7C0%7C0%7C0%7C0%7C4%7C5%7C-4%7C8%7C9%7C10%7C11%7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%7C0%7C4%7C5%7C-4%7C8%7C9%7C10%7C11%7C1%7C-8%7C14%7C15%7C0%7C-19%7C65%7C0%7C0%7C0%7C0%7C4%7C5%7C-4%7C8%7C9%7C10%7C11%7C1%7C-8%7C14%7C15%7C0%7C-19%7C66%7C0%7C0%7C0%7C0%7C4%7C5%7C-4%7C8%7C9%7C10%7C11%7C1%7C-8%7C14%7C15%7C0%7C-11%7C66%7C0%7C0%7C0%7C0%7C&token=hQOzO8FZPwUcQf0icIWoLUycZLg%3A1349717509928 HTTP/1.1 200 OK Content-Type: text/csv; charset=UTF-8 Content-Disposition: attachment; filename="keyword_ideas_20121008_1035474.csv" X-Invoke-Duration: 281 Date: Mon, 08 Oct 2012 17:35:26 GMT Expires: Mon, 08 Oct 2012 17:35:26 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE How do I get this data through AutoIt? Edited October 8, 2012 by ogloed Link to comment Share on other sites More sharing options...
ogloed Posted October 17, 2012 Author Share Posted October 17, 2012 Actually making a POST request using XMLHttpRequest works like a charm. DaleHohm, thanks again! Link to comment Share on other sites More sharing options...
DaleHohm Posted October 17, 2012 Share Posted October 17, 2012 You're welcome. Please show the syntax of your post request here so that it might help others in the future (do it with detail related back to the header you included above, if possible). Dale ogloed 1 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...
ogloed Posted October 17, 2012 Author Share Posted October 17, 2012 (edited) Please show the syntax of your post request here so that it might help others in the future (do it with detail related back to the header you included above, if possible). I'm a little concerned of them changing code because of this post, so I will show a general example: ; Instantiate AJAX object in browser and get reference $oIE.document.parentWindow.eval("var oXHR = new XMLHttpRequest();") $oXHR = $oIE.document.parentWindow.eval("oXHR;") ; The URL of the file as referenced on the page $sURL = "https://domain.com/script.php" $sData = _Encoding_URIEncode("var1=" & $sVar1 & "&var2=" & $sVar2 & "&var3=" & $sVar3) ; Capture the file via Ajax $oXHR.open("POST", $sURL, True) $oXHR.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); $oXHR.send($sData) $sRawFile = $oXHR.responseText _Encoding_URIEncode() function is from attached UDF. (Encoding.au3) But, the next issue I met is that this XMLHttpRequest doesn't work in IE9 for some reason: ==> The requested action with this object has failed.: $oIE.document.parentWindow.eval("var oXHR = new XMLHttpRequest();") $oIE.document.parentWindow.eval("var oXHR = new XMLHttpRequest();")^ ERROR Can you give any advice on this, please?Encoding.au3 Edited October 17, 2012 by ogloed Link to comment Share on other sites More sharing options...
DaleHohm Posted October 17, 2012 Share Posted October 17, 2012 It is not XMLHttpRequest, it is a bug in the Javascript parser in IE9 standards mode, as I understand it, that causes $oIE.document.parentwindow.eval to fail.The only workaround I am currently aware of is to set the page to compatability mode.Dale ogloed 1 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...
ogloed Posted October 18, 2012 Author Share Posted October 18, 2012 (edited) The only workaround I am currently aware of is to set the page to compatability mode.Doesn't help, the same error comes up. Edited October 19, 2012 by ogloed Link to comment Share on other sites More sharing options...
DaleHohm Posted October 19, 2012 Share Posted October 19, 2012 I have tested this. The following script will prove it to you. Perhaps you are seeing a different error. #include <IE.au3> $oIE = _IECreate("[url="http://www.autoitscript.com"]www.autoitscript.com[/url]") MsgBox(0, "Set Mode", "Change to compatability mode, or not.") $oIE.document.parentWindow.eval('alert(document.documentMode);') $oIE.document.parentWindow.eval("var oXHR = new XMLHttpRequest();") $oXHR = $oIE.document.parentWindow.eval("oXHR;") MsgBox(0, "Test Object", "isObj($oXHR) = " & IsObj($oXHR)) Also, I have tried adding the meta tag to set compatability mode, but it does not appear to change the browser mode after load: #include <IE.au3> $oIE= _IECreate("[url="http://www.autoitscript.com"]http://www.autoitscript.com[/url]") ConsoleWrite($oIE.document.documentMode & @CRLF) $o_head = _IETagNameGetCollection($oIE, "head", 0) $o_element = $oIE.document.createElement('meta') $o_element.httpEquiv = 'X-UA-Compatible' $o_element.content = "IE=7" $o_head.insertBefore($o_element, $o_head.firstChild) ConsoleWrite($oIE.document.documentMode & @CRLF) So, currently the only ways I know to affect compatability mode are to use the IE UI and set all sites to compatability mode, set specific sites to compatability mode or to automate the IE UI to set the current page to compatability mode. Dale ogloed 1 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...
ogloed Posted October 23, 2012 Author Share Posted October 23, 2012 DaleHohm, thank you very much for your effort, but I found it more convenient to downgrade IE9 to IE8. But thank you. I really appreciate your help. 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