|
Class: HTTPProxyQuery
Object
|
+--GenericException
|
+--Notification
|
+--Query
|
+--HTTPProxyQuery
- Package:
- stx:goodies/communication
- Category:
- Net-Communication-HTTP-Client
- Version:
- rev:
1.3
date: 2021/01/20 16:03:28
- user: cg
- file: HTTPProxyQuery.st directory: goodies/communication
- module: stx stc-classLibrary: communication
query for a proxy (raised by HTTPInterface to ask any caller for a proxySettings info)
[instance variables:]
[class variables:]
[example:]
|p|
p := HTTPProxySettings new.
p proxyHost:'foo'.
p proxyPort:1234.
p useProxy:true.
HTTPProxyQuery
answer:p
do:[
HTTPInterface get:'www.exept.de'
].
copyrightCOPYRIGHT (c) 2018 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
|reply p|
p := HTTPProxySettings useHost:'sixtyfour' port:3128.
HTTPProxyQuery
answer:p
do:[
reply := HTTPInterface get:'www.exept.de'
].
|
|reply|
HTTPInterface
withProxy:(HTTPProxySettings useHost:'sixtyfour' port:3128)
do:[
reply := HTTPInterface get:'http://www.exept.de'
].
|
|