Article delegate-en/3148 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Strange behavior with HTTP 307
09 Mar 2006 07:42:19 GMT (Yutaka Sato)
The DeleGate Project

In message <_A3146@delegate-en.ML_> on 03/08/06(22:46:41)
you "Raphael Turbatte" <> wrote:
 |I launched Delegate in detailed logging mode to check what was
 |happening, then launched Internet Explorer and tried to go to
 | . Here is an extract of what I found in the log (I
 |removed the timestamp part to make it easier to read):
 |* HTTP Relay_request_head (26 bytes/2 lines)
 |* Proxy: host=localhost; User-Agent: ; DIRECT
 |* HTTP Relay_request done (26 bytes/2 lines)
 |* ImMaster? 0 <http://-:80> <>
 |* To another server or proxy, THRU >>> HTTP/1.1^M
 |* gethostbyname(
 |* TMPFILE(regGetResolvConf) = (26) C:/Program
 |* >>>TMPFILE(regGetResolvConf)>>>6699d0[26]
 |* *** gethostbyname( / 0.01 secs.
 |* HOSTS[8]={,}/
 |* ClosedOnTimeout(0): time=1141824397/1141824427 ppid=3352/3352 pid=1544/1544
 |* StickyServer done [httpCONNECT] 2 req / 1 conn / 0 sec
 |* ====> NO CONNECT was specified for:
 |* ConnectToServer connect
 |The log shows "not PERMITTED_pair" when the connect request is sent
 |and then shows that Delegate transforms the request into https instead
 |of http, it seems.

There is no transformation achieved, but DeleGate represents the permission
of "CONNECT" method with protocol name "https" in historical reason.
You should have seen that the connection is made to the server without
forbidden by DeleGate, in the remaining part of the LOGFILE.

The question is why the client is retrying with CONNECT method to connect
the server, reacting to 307? response.
What is the User-Agent in this case?

 |Strangely enough, my config file has nearly no restrictions on that part:

To see what is the problem, it will helpful to inspect the sequence of
requests and responses including:

  1) the original request toward the upstream proxy
  2) the response from the upstream proxy (with 307 code?)
  3) the second request sent from the client
  4) the second response from the upstream proxy

These can be peeped with the following parameters:


If the response code is not 307 but is 407 with "Proxy-Authencication",
it simply represents that the upstream proxy requires Proxy authentication.
Proxy authentication will be done like follows:

  HTTPCONF="add-qhead:Proxy-Authorization: Basic XXXX"

XXXX is the Base64 string of "username:passWord" which should be
shown in your LOGFILE, or the output of the following command

  echo -n "userName:passWord" | delegated -FenMime -b

  D G   Yutaka Sato <>
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]