07-10-2013, 06:40 AM
GetHtml doesn't show the same code as you get with 'View Page Source', especially with scripts. Is there any way to get all the code, please?
View Page Source
|
07-10-2013, 06:40 AM
GetHtml doesn't show the same code as you get with 'View Page Source', especially with scripts. Is there any way to get all the code, please?
07-10-2013, 04:09 PM
HtmlDoc recreates parsed HTML.
IntGetFile downloads exact HTML. If need HTML of page in web browser, you can get its current URL and download source with IntGetFile. I don't know how to get exact source HTML from Internet Explorer.
07-11-2013, 04:31 AM
Thanks for your help.
When I use 'View Page Source' I am logged with my username and password and it shows all the code. If I use HtmlDoc or IntGetFile, I cannot pass my user/pass (or cookies with that info) therefore the html code is for the non-logged in users page. Any alternative as Http c.Connect(url "username" "password") or something like that?
07-11-2013, 11:51 AM
If currently logged-in in Internet Explorer, QM Internet functions can use IE cookies and get HTML for the logged-in user.
IE in protected mode runs with Low integrity level and stores cookies in different location. To use that cookies in QM, let the macro run in separate process with Low integrity level. Macro Macro2088 Or can log-in in QM, using dialog with web browser control. Function IntLoginDialog ;/Dialog_Editor
07-12-2013, 02:58 AM
Works fine, thanks!
IE+ ;/exe 4 IntGetFile ... ... was my option. Any chance to rewrite the QM Internet functions for my beloved Firefox (and more secure xD)?
07-12-2013, 04:48 AM
QM already has functions for Firefox. Can get URL, title, HTML, text, HTML element attributes, open web page and wait until loaded, get tabs, select tab. Some functions are in the Acc class. Some functions are in the forum only.
07-13-2013, 08:32 AM
Oh yes, I do know some of them.
But IntGetFile/GetHtml don't work for Firefox even logged-in: IntGetFile "http://www.wwwwww.com" _s HtmlDoc d str url="http://www.wwwwww.com" d.SetOptions(2) d.InitFromWeb(url) _s=d.GetHtml
07-13-2013, 09:03 AM
If you can find where Firefox saves cookies, and get cookies of the website that you need, it's possible to use them in QM. Need some corrections in Http.Get to send custom headers.
|
« Next Oldest | Next Newest »
|