r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Web] Everything web development related

Graham
29-Mar-2005
[559]
Have u tried using curl ?
Geomol
29-Mar-2005
[560]
No, what is curl?
Graham
29-Mar-2005
[561x5]
it's a library and also command line utlity for doing web stuff.
curl is a command line tool for transferring files with URL syntax, 
supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and 
LDAP. Curl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP 
uploading, HTTP form based upload, proxies, cookies, user+password 
authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file 
transfer resume, proxy tunneling and a busload of other useful tricks.
http://curl.haxx.se/
I used it before I got command.
wrote results out to data files, and then parsed the results out 
with rebol.
Carl
29-Mar-2005
[566]
Geomol: What proxy are you using?
Geomol
29-Mar-2005
[567]
Carl: I have to check that at work tomorrow (I didn't set it up). 
We're testing on a proxy, and another one is at a customer, where 
it doesn't work either. The customer is the norwegian oil company 
Statoil, and we have their words, that it supports "tunnelling", 
but I'm sceptical as usual. ;-)
Romano
29-Mar-2005
[568]
Geomol, how you set the proxy in Rebol?
Geomol
29-Mar-2005
[569]
In the SDK, I use the set-network command. Else the set-net command 
can be used.
Graham
29-Mar-2005
[570]
Can you use ethereal to see if the packets are all going thru the 
proxy?
Romano
29-Mar-2005
[571]
I should like to know what is the proxy-type you set with set-net
Geomol
29-Mar-2005
[572]
Proxy type is generic.
Allen
29-Mar-2005
[573]
Graham, any relation to the other Curl language/platform?  http://www.curl.com/
Graham
29-Mar-2005
[574x2]
Completely different.  I think we discussed www.curl.com on the mailing 
list many years ago.  Someone was saying that they had a proposition 
for View to do a job, but it ended up being done by Curl.
There was discussion way back in 1991 http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlXQTK
about Curl, and the 30Mb download required.
Izkata
29-Mar-2005
[576]
....you mean 2001
Geomol
30-Mar-2005
[577]
Carl: On the test system, we use the proxy named squid version 2.5.9_1 
(http://www.squid-cache.org) under FreeBSD 5.3.
Graham
30-Mar-2005
[578x2]
I also tried reading a https page using command and squid, and couldn't 
get it to work.
Altme works throught squid though
Geomol
30-Mar-2005
[580x2]
Thanks Graham. Good that someone else can recreate the problem.
Is Altme communicating on plain TCP/IP protocol? Does Altme use encryption 
in any way? SSL?
Graham
30-Mar-2005
[582x2]
Altme uses encryption but not ssl
I just so happened to have squid setup next to me for another purpose 
...so could easily test.
Geomol
30-Mar-2005
[584x5]
Out customer Statoil use a hardware proxy from NetApp called NetCache, 
and they have the same problem.
http://www.netapp.com/products/netcache/netcache_family.html

Tunnelling is supported according to their specs: http://www.netapp.com/products/software/software_specs.html
Graham: Do you know, how tunnelling works with squid? (I'm not a 
proxy expert in any way.) Does it have to be turned on or something 
in the config file?
I see the spelling "tunelling" with one 'n' now and then, in case 
you're searching the documentation.
Seems like SSL Tunnelling with squid is on by default on certain 
ports using the CONNECT method:

http://www.squid-cache.org/mail-archive/squid-users/200210/0295.html

Our customer was monitoring the trafik and could see, that nothing 
happened after the CONNECT, so maybe the problem is, that REBOL doesn't 
continue after the CONNECT!? As I understand it, the CONNECT method 
is used to establish a connection between the two computers (client 
and server), and then the proxy simple let the communication continue 
without touching it (allowing SSL encryption and the like). REBOL 
can make the connection, but fail to communicate afterwards. (My 
guess.)
It's interesting, that Altme works using encryption too!? Is the 
CONNECT method in use in this situation?
Pekr
30-Mar-2005
[589]
an encryption tool? I think not ... IMO altme is built upon SSL capability 
of Rebol/Command SDK or even Rebol/Pro? Dunno ...
Geomol
30-Mar-2005
[590]
Pekr: Graham was just saying, that "Altme uses encryption but not 
ssl"
Pekr
30-Mar-2005
[591x4]
Geomol - there is nothing like "connect". If you have a free bit 
of a free time, I suggest you to download Winpcap and Ethereal - 
they are both free and you get cool network monitoring tool. You 
can learn a lot ...
well, maybe he is right, Graham is clever guy :-)
it may just use normal means of tcp communication with encrypted 
content, using RSA for e.g.
see http://www.rebol.com/docs/encryption.html
Geomol
30-Mar-2005
[595]
Yes
Pekr
30-Mar-2005
[596]
not sure how this discussion started but maybe we are not in correct 
group ...
Geomol
30-Mar-2005
[597]
I started it Tuesday 11:26 with a problem regarding HTTPS over a 
proxy.
Pekr
30-Mar-2005
[598]
ah, proxies ... in our company, although we use Squid IIRC, we have 
following problem - we found out, our admins use kind of load balancing, 
but they are not able to solve session afinity right now, so eg. 
ICQ disconnects after some time, as it can get packed routed using 
different machine and it imo causes communication to break ...
Geomol
30-Mar-2005
[599x2]
Graham: I've done Ethereal monitoring with our test proxy, and after 
the "HTTP/1.0 200 Connection established" reply from the proxy, there's 
a line from my computer (running REBOL) to the proxy with the text 
"Continuation or non-HTTP traffic". After that, the proxy reply with 
a [FIN, ACK]. If that "continuation" holds the information from my 
REBOL application to go to the server in the other end, it may be 
a proxy problem!?
I notice a bug in the CONNECT request from REBOL to the proxy. Ethereal 
reports:

[Dissector bug, protocol HTTP: "Request Version" - "http.request.version" 
invalid length: -32 (proto.c:2104)]
!?
Flemming
30-Mar-2005
[601]
I'm having some problems with the rebol example webserv.r   I've 
installed it on a computer at home and a computer here at work. It 
works fine at home, but here there appears to be problems with the 
path of the script. The log file is places several places (where 
the webserv.r script is located and severel places inside the www 
path), and there are problems accessing rebol scripts inside :[  
]: - apparently also because of problems with the path. Very wierd 
behaviour. Any help appriciated.
Geomol
30-Mar-2005
[602]
I've solved the problem with HTTPS thru a proxy. The problem is, 
that the commands to the proxy is sent with only a newline in the 
end of each line. If I replace the newlines with carriage-return 
newline ("^M^/"), it works. Within the SDK, the problem is in the 
file "source/prot-http.r".
Anton
30-Mar-2005
[603x3]
Geomol, that sounds excellent. Does it still work at home ?
Sorry Geomol, I've mixed your post with Flemming's. Must be time 
to go to sleep :)
Flemming, are you using the same version of rebol and are they on 
the same platform at home as at work ?
Romano
30-Mar-2005
[606]
Geomol, that is a known bug in ssl, see RAMBO #3532, it is interesting 
to know that it affects HTTPS with proxy
Graham
30-Mar-2005
[607x2]
Geomol, can you post the corrected version of prot-http.r somewhere?
Perhaps on the REP site ?