[SQU] How to test if CONNECT method in proxy is working???

From: Chee Seng Toh <chee.seng.toh@dont-contact.us>
Date: Mon, 15 Jan 2001 19:03:19 +0800

Hi,

I suspect my incorrect proxy configuration with Squid to use the CONNECT
method, could someone throw on light on this mystery ...

My current squid.conf (extract) as follow :

http_port 3128 8080

#Defaults:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
.
.
#Default configuration:
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
#http_access deny CONNECT !SSL_ports
http_access deny CONNECT !Safe_ports

http_access allow CONNECT
http_access allow all

http_access deny all
icp_access allow all
miss_access allow all

I have reaffirmed that port 3128 and 443 are on LISTENING mode via netstat
command

I make a small test (not sure if this is right) ...
[
root@localhost /root]# telnet localhost 3128
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
CONNECT HTTP

HTTP/1.0 400 Bad Request
Server: Squid/2.3.STABLE1
Mime-Version: 1.0
Date: Mon, 15 Jan 2001 11:43:06 GMT
Content-Type: text/html
Content-Length: 838
Expires: Mon, 15 Jan 2001 11:43:06 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from localhost.localdomain
Proxy-Connection: close

<HTML><HEAD>
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
</HEAD><BODY>
<H1>ERROR</H1>

on the other hand,
[root@localhost /root]# telnet localhost 443
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
CONNECT HTTP
Connection closed by foreign host.

What could it be that I am missing out??? Thanks for any help in advance.

Regards
Chee Seng

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Jan 15 2001 - 04:14:39 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:27 MST