You can use:
port-spec: make port! [
        scheme: 'tcp
                host: :base-url
        port-id: 80
        proxy: make system/schemes/default/proxy []
                timeout: 0:10
]
Root-Protocol/open-proto port-spec

and now it should be open, going through your default proxy.  For a
more sophisticated look you can check out %proxy.r i nthe advanced
section of the REBOL.org script library.  It's a neat little script
that I use all the time... I have a few things to add to it like error 
handling and a few bug fixes but it should show you a good look into
using direct tcp ports.

Sterling

> Hi all,
> 
> to send a cgi POST query I'd like to open a port to a particular
> web server. As I'm behind a proxy I'd like to know if it's
> possible to set a proxy for every open command.
> 
> port: open [
>   scheme: 'tcp
>     host: :base-url
>     port-id: 80
>     proxy/host:    "wingate.intranet.gy"
>     timeout: 0:10
> ]
> 
> If I try to use the above statement I get an error that I cannnot
> set proxy/host. What's the right way to specify the proxy settings?
> 
> If I remove the proxy/host and use scheme: 'http I get through the
> proxy with my settings from user.r, but when I come to the 'close port'
> statement Rebol crashes with an error (something like an invalid
> statement or something, sorry, I have a German Win98...).
> 
> Does anyone have an idea?
> 
> Thanks,
> 
> Tom
> 
> 

Reply via email to