Discussion:
TWebbrowser and changing Requests
(too old to reply)
Artik
2012-09-23 10:08:25 UTC
Permalink
Hello,
Initially I apologise for my very basic english.

I don't know is it possible but I looking solve for changing url addresses for several image resources before downloading them into entire HTML Document inside TWebbroswer.
I mean - when one man visit web page (via Webbrowser) where are images from address xyz/image.png etc. that webbrowser take them from different (setting by me) addresses.
I did it by doing my own proxy server and it works but all requests (even these from ordinary IE) going through this server and it is verry hard for this server:(
Maybe is it possible change proxy address only for one instaces of TWebbrowser (this in my application) not for all of them including ordinary IE?

Best regards
Artik
Jamie
2012-09-23 16:04:55 UTC
Permalink
Post by Artik
Hello,
Initially I apologise for my very basic english.
I don't know is it possible but I looking solve for changing url addresses for several image resources before downloading them into entire HTML Document inside TWebbroswer.
I mean - when one man visit web page (via Webbrowser) where are images from address xyz/image.png etc. that webbrowser take them from different (setting by me) addresses.
I did it by doing my own proxy server and it works but all requests (even these from ordinary IE) going through this server and it is verry hard for this server:(
Maybe is it possible change proxy address only for one instaces of TWebbrowser (this in my application) not for all of them including ordinary IE?
Best regards
Artik
You mean you want to detect if you get a 403 error ? "redirection"

Jamie
Artik
2012-09-23 18:05:07 UTC
Permalink
Post by Jamie
You mean you want to detect if you get a 403 error ? "redirection"
Jamie
Maybe for simplest description:
When I navigate to some address in Webbrowser I want change all images in downloading HTML document (before downloading them). It is for protect downloading huge images data from the Internet, by replacing them using images from local http server.

~Artik
Jamie
2012-09-23 20:07:07 UTC
Permalink
Post by Artik
Post by Jamie
You mean you want to detect if you get a 403 error ? "redirection"
Jamie
When I navigate to some address in Webbrowser I want change all images in downloading HTML document (before downloading them). It is for protect downloading huge images data from the Internet, by replacing them using images from local http server.
~Artik
down load the Help from MS that covers all the sub calls..

There are many more things you can do with the browser object that is
not implemented in the VCL version however, you can get at them as long
as you know the member names..

THere are a lot of events that you can intercept and change if needed
to point to different paths or just simply reject them.

Jamie

Loading...