an error in help example code for using proxy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
J G
Reply | Threaded
Open this post in threaded view
|

an error in help example code for using proxy

J G
Hi,

In help>>HTTP>>Retrieve contents ...behind a proxy:
(my modified code)
[Net.Settings httpUseProxy:true. "<-- this very line must be added
otherwise will not work"
HttpClient proxyHost: '127.0.0.1' port: 8580.
        url := 'http://youtube.com' asURI.
        url readStreamDo: [:rs :meta | str := rs contents].
] ensure: [HttpClient disableProxy].
str inspect.
(now works)


Best Regards,

Jim G
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc