[REBOL] new proxy server and related problems ... Re:

2000-03-03 Thread icimjs

Hi Petr,

have you tried to set the http proxy settings? I.e. 

 system/schemes/http/proxy/host: proxy.sec.trz.cz
 system/schemes/http/proxy/port-id: 3128
 system/schemes/http/proxy/type:  'socks.
 system/schemes/http/proxy/user: none
 system/schemes/http/proxy/pass: none


At 10:54 AM 3/3/00 +0100, you wrote:
Hi,

our company has new proxy server installed and I can't get trhu it with
REBOL 

My Netscape settings are:

http: proxy.sec.trz.cz port: 3128

No socks hosts setting is applied.

how should I set my http scheme to let it work?

The only one way of how to get thru is:

port: open/lines tcp://proxy.sec.trz.cz:3128
con: insert port "GET http://www.rebol.com/ HTTP/1.0^M^J^M^J"

wait con
while [data: pick con 1][print data]

close con

This small test works, but read http://www.rebol.com hangs, and I can't
find it combination of setting to make it work.

Any help, please?

Thanks,

-pekr-




;- Elan  [: - )]



[REBOL] new proxy server and related problems ... Re:(2)

2000-03-03 Thread Petr . Krenzelok



[EMAIL PROTECTED] wrote:

 Hi Petr,

 have you tried to set the http proxy settings? I.e.

  system/schemes/http/proxy/host: proxy.sec.trz.cz
  system/schemes/http/proxy/port-id: 3128
  system/schemes/http/proxy/type:  'socks.
  system/schemes/http/proxy/user: none
  system/schemes/http/proxy/pass: none

the strange thing is - netscape works. Well, I tried above, just instead of
'socks I used 'socks5 and instead of both 'none I used 'false, in other case
REBOL would use my default scheme's proxy setting, where I have 'user and
'pass set.

btw: shouldn't be proxy.sec.trz.cz enclosed in quotes? :-)

but, what is the system/schemes/http/host and system/schemes/http/port-id
for? I even tried set system/schemes/http/port-id to 3128, or directly site:
read http://www.rebol.com:3128, but it still doesn't help. Will
www.rebol.com be used for system/schemes/http/host?

It's strange direct communication with proxy server works fine, but 'read
should work too imho, unless there is bug in http protocol implementation???

-pekr-


 At 10:54 AM 3/3/00 +0100, you wrote:
 Hi,
 
 our company has new proxy server installed and I can't get trhu it with
 REBOL 
 
 My Netscape settings are:
 
 http: proxy.sec.trz.cz port: 3128
 
 No socks hosts setting is applied.
 
 how should I set my http scheme to let it work?
 
 The only one way of how to get thru is:
 
 port: open/lines tcp://proxy.sec.trz.cz:3128
 con: insert port "GET http://www.rebol.com/ HTTP/1.0^M^J^M^J"
 
 wait con
 while [data: pick con 1][print data]
 
 close con
 
 This small test works, but read http://www.rebol.com hangs, and I can't
 find it combination of setting to make it work.
 
 Any help, please?
 
 Thanks,
 
 -pekr-
 
 
 

 ;- Elan  [: - )]



[REBOL] new proxy server and related problems ... Re:(3)

2000-03-03 Thread sterling


The new proxy server is probably a Squid proxy server, which means
that the proxy-type needs to be set to 'generic, not 'socks or
'socks5.

I assume that your netscape settings have the host and port number
listed under the http proxy area, not under socks.  Anyway, try it as
generic and see if that fixes the problem.

Sterling

 [EMAIL PROTECTED] wrote:
 
  Hi Petr,
 
  have you tried to set the http proxy settings? I.e.
 
   system/schemes/http/proxy/host: proxy.sec.trz.cz
   system/schemes/http/proxy/port-id: 3128
   system/schemes/http/proxy/type:  'socks.
   system/schemes/http/proxy/user: none
   system/schemes/http/proxy/pass: none
 
 the strange thing is - netscape works. Well, I tried above, just instead of
 'socks I used 'socks5 and instead of both 'none I used 'false, in other case
 REBOL would use my default scheme's proxy setting, where I have 'user and
 'pass set.
 
 btw: shouldn't be proxy.sec.trz.cz enclosed in quotes? :-)
 
 but, what is the system/schemes/http/host and system/schemes/http/port-id
 for? I even tried set system/schemes/http/port-id to 3128, or directly site:
 read http://www.rebol.com:3128, but it still doesn't help. Will
 www.rebol.com be used for system/schemes/http/host?
 
 It's strange direct communication with proxy server works fine, but 'read
 should work too imho, unless there is bug in http protocol implementation???
 
 -pekr-



[REBOL] new proxy server and related problems ... Re:(4)

2000-03-03 Thread Petr . Krenzelok



[EMAIL PROTECTED] wrote:

 The new proxy server is probably a Squid proxy server, which means
 that the proxy-type needs to be set to 'generic, not 'socks or
 'socks5.

Squid, yes, they switched to Linux. You are a God, Sterling! :-)

 I assume that your netscape settings have the host and port number
 listed under the http proxy area, not under socks.  Anyway, try it as
 generic and see if that fixes the problem.

Exactly.

I will try it on monday once I am at my work once again.  I think it will work.

side-note: But the strange thing is, I can get to news servers thru:

system/schemes/default/proxy/host: "proxy.sec.trz.cz"
system/schemes/default/proxy/port-id: 1080
system/schemes/default/proxy/user: "usernamehere"
system/schemes/default/proxy/pass: "passwordhere"
system/schemes/default/proxy/type: "socks5"

... but maybe then I am connecting to another service running on proxy.sec.trz.cz
machine ...

Anyway, thanks once again, I think your suggestion will solve my problems ...

-pekr-

 Sterling



[REBOL] new proxy server and related problems ... Re:

2000-03-03 Thread dolmen


Did you tried to delete %user.r and relaunch REBOL ?
The setup will ask you the proxy settings.

Olivier

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 03, 2000 10:54 AM
Subject: [REBOL] new proxy server and related problems ...


 Hi,
 
 our company has new proxy server installed and I can't get trhu it with
 REBOL 
 
 My Netscape settings are:
 
 http: proxy.sec.trz.cz port: 3128
 
 No socks hosts setting is applied.
 
 how should I set my http scheme to let it work?
 
 The only one way of how to get thru is:
 
 port: open/lines tcp://proxy.sec.trz.cz:3128
 con: insert port "GET http://www.rebol.com/ HTTP/1.0^M^J^M^J"
 
 wait con
 while [data: pick con 1][print data]
 
 close con
 
 This small test works, but read http://www.rebol.com hangs, and I can't
 find it combination of setting to make it work.
 
 Any help, please?
 
 Thanks,
 
 -pekr-