New topic: 

HTMLViewer through a proxy

<http://forums.realsoftware.com/viewtopic.php?t=30526>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       motorollin           Post subject: HTMLViewer through a 
proxyPosted: Fri Oct 16, 2009 4:45 pm                        
Joined: Mon Jun 16, 2008 4:53 pm
Posts: 23              I need to use an HTMLViewer through a proxy, but not the 
one specified in the system preferences. Here's what I've done so far:

Code:Dim Sock As HTTPSocket
Sock = New MyHTTPSocket
Sock.HTTPProxyAddress = "localhost"
Sock.HTTPProxyPort = 8081
Sock.Get("http://www.google.co.uk/";)


Then in MyHTTPSocket's PageReceived event:

Code:Window1.HTMLViewer1.LoadPage(content, nil)

This works fine, but when I click a link on the page in the HTMLViewer, the 
request doesn't go through the HTTPSocket so doesn't go via the proxy. Is there 
a way round this?   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to