Does IE use InternetOpenURL?
Does IE use InternetOpenURL?
I want to get the URLs IE is trying to access. I tried InternetOpenURL in wininet.dll but didn't get anything IE is not using it?
Any other ways to hook IE and get the URL before IE fetches data?
Thanks.
Any other ways to hook IE and get the URL before IE fetches data?
Thanks.
Why don't you do this:
Hookup the function "send" of ws2_32.dll and see if the first 3 chars are GET. Then you check the others characters till a space appears (i think). So this will work for every browser, not only IE. An example of a HTTP Header:
Code retreaved with my Sniffer (made with MadCollection)
I hope this is helpfull!
Hookup the function "send" of ws2_32.dll and see if the first 3 chars are GET. Then you check the others characters till a space appears (i think). So this will work for every browser, not only IE. An example of a HTTP Header:
Code: Select all
GET http://delphiforum.icft.com.br/forum/index.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
Accept-Language: pt-br
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Host: delphiforum.icft.com.br
Proxy-Connection: Keep-Alive
Cookie: phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22c795dba9d9d712a94af5b61ca0611a8c%22%3Bs%3A6%3A%22userid%22%3Bi%3A125%3B%7D
The URL in Bold is the URL that a browser is trying to open. So this will work for every browsers and not only for Internet Explorer.Look the first line wrote: GET http://delphiforum.icft.com.br/forum/index.php HTTP/1.1
I hope this is helpfull!