Sunday, 15 June 2014

proxy - Squid gives "The requested URL could not be retrieved" on particular request -



proxy - Squid gives "The requested URL could not be retrieved" on particular request -

i have server has net connection (1) , 1 hasn't (2). on (1) have squid server config:

acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl portal1 src 192.168.153.40/32 acl mediation1 src 172.21.78.138/32 acl mediation2 src 172.21.78.139/32 acl ssl_ports port 443 acl safe_ports port 80 # http acl safe_ports port 21 # ftp acl safe_ports port 443 # https acl connect method connect http_access allow manager localhost http_access deny manager http_access deny !safe_ports http_access deny connect !ssl_ports http_access allow mediation1 http_access allow mediation2 http_access allow portal1 http_access allow localhost http_access deny http_port 3128 transparent coredump_dir /var/spool/squid refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 visible_hostname "webcol-ctip01" cache deny request_body_max_size 10 mb client_request_buffer_max_size 20 mb request_header_max_size 10 mb

on (2) have complex application requires send info via post external host. able connect proxy:

# export http_proxy=http://192.168.153.40:3128 # wget -o - http://google.com --2013-02-15 21:20:55-- http://google.com/ connecting 192.168.153.40:3128... connected. proxy request sent, awaiting response... 301 moved permanently location: http://www.google.com/ [following] --2013-02-15 21:20:55-- http://www.google.com/ connecting 192.168.153.40:3128... connected. proxy request sent, awaiting response... 302 moved temporarily location: http://www.google.ru/ [following] --2013-02-15 21:20:55-- http://www.google.ru/ connecting 192.168.153.40:3128... connected. proxy request sent, awaiting response... 200 ok length: unspecified [text/html] saving to: “stdout” ...etc...

but specific request i'm sending in application gives me error. here reproduced error curl:

curl -k --request post --header "content-type: text/xml" --data @req.xml http://some-domain.webex.com/wbxserv...iew/xmlservice

invalid request error encountered while trying process request: post /wbxservice/preview/xmlservice http/1.1 user-agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 nss/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 host: some-domain.webex.com accept: */* proxy-connection: keep-alive content-type: text/xml content-length: 1510 expect: 100-continue possible problems are: missing or unknown request method. missing url. missing http identifier (http/1.0). request large. content-length missing post or set requests. illegal character in hostname; underscores not allowed. http/1.1 "expect:" feature beingness asked http/1.0 software. cache administrator root.

meanwhile in access log:

1360949609.433 0 172.21.78.138 none/417 4317 post http://some-domain.webex.com/wbxserv...iew/xmlservice - none/- text/html

os centos 6.3 x64 & squid 3.1.10

what missing here?

proxy squid

No comments:

Post a Comment