Closed (duplicate)
Project:
Drupal core
Version:
4.4.2
Component:
base system
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2004 at 03:39 UTC
Updated:
26 Jul 2011 at 14:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
liquidx commentedslight typo in the comment, i never get things right the first time round :(
Comment #3
TDobes commentedThis seems like a possibly useful patch for those stuck in an environment where they must use a proxy. (intranets?) I have no proxy set up at the moment with which to test, but +1 to the functionality.
Comment #4
Steven commentedIf we use HTTP/1.1 (using the Host header), I think we can send exactly the same request to both a proxy and the real server. It might make the code a bit cleaner.
Comment #5
Steve Stock commentedThat's correct, HTTP/1.1 explicitly requires servers to accept an absolute URI in the request-line (which of course proxies already require). See http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2 for details. Note: a host header is still required.
The drawback is all HTTP/1.1 applications must be able to accept the chunked transfer coding, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4 (third paragraph above section 4.5). I don't know if Drupal supports this (doesn't look like it).
While not as nice, for now it appears simpler to implement a proxy along the lines of this patch. My only suggestion would be to add a proxy section to the settings page instead of hardcoding the proxy host/port.
Comment #6
Jhef.Vicedo commented+1 on having a facility to modify proxy settings...
here's a patch of /includes/common.inc for drupal-4.4.2 version
Comment #7
Bèr Kessels commentedHi,
you use variable_get('proxy_name', '') , but that is not defined anywhere. I would plead against another config option, or conf.php options.
I am no proxy guru, so the following suggestion might be impossible:
* add the proxy port to the $base_url and try to re-arrange your logic in such a way ,that it will detect the port from the $base_url. If found the variabale will be set, and userd.
* or use the default system, but add some logic to the fsockopen, that, if it fails, it will try again, with proxy, if that was sucessfull, set the variable.
Bèr
Comment #8
Jhef.Vicedo commentedsee this for complete patches: http://drupal.org/node/7881
Comment #9
(not verified) commentedHere's teh error I get when I try this "Patch - drupal-cvs-20040802-proxy-v2.diff "
Aggregator: failed to parse RSS feed Microsoft Security Info: invalid schema .
any idea's?
Comment #10
killes@www.drop.org commentedhttp://drupal.org/node/7881
Comment #11
arhak commentedsubscribing