LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2013, 12:32 PM   #1
ZackFair
LQ Newbie
 
Registered: Oct 2012
Location: Russia
Distribution: Arch, CentOS, RHEL, Debian, Ubuntu
Posts: 15

Rep: Reputation: Disabled
Squid gives "The requested URL could not be retrieved" on particular query.


Hi,


I have a server that has internet connection (1) and one that hasn't (2).
On (1) I have Squid server with 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 all
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 all
request_body_max_size 10 MB
client_request_buffer_max_size 20 MB
request_header_max_size 10 MB
On (2) I have complex application that requires to send some data via POST to external host. I am able to connect to 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 to 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 to 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 to 192.168.153.40:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “STDOUT”
...etc...
But specific request that I'm sending in application gives me error. Here is reproduced error with curl:
#curl -k --request POST --header "Content-type: text/xml" --data @req.xml http://some-domain.webex.com/WBXServ...iew/XMLService
Invalid Request error was encountered while trying to process the 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

Some possible problems are:

Missing or unknown request method.

Missing URL.

Missing HTTP Identifier (HTTP/1.0).

Request is too large.

Content-Length missing for POST or PUT requests.

Illegal character in hostname; underscores are not allowed.

HTTP/1.1 "Expect:" feature is being asked from an HTTP/1.0 software.

Your cache administrator is 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 am I missing here?

Last edited by ZackFair; 02-15-2013 at 12:38 PM.
 
Old 02-18-2013, 03:03 AM   #2
ZackFair
LQ Newbie
 
Registered: Oct 2012
Location: Russia
Distribution: Arch, CentOS, RHEL, Debian, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: Disabled
Anyone?
 
Old 02-18-2013, 04:52 AM   #3
ZackFair
LQ Newbie
 
Registered: Oct 2012
Location: Russia
Distribution: Arch, CentOS, RHEL, Debian, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: Disabled
Lightbulb

Solved.

Either update to 3.2 or add "ignore_expect_100 on" to conf file.
 
Old 02-18-2013, 04:54 AM   #4
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Are you getting error exact like screenshot? or if anything is changed , mention this.
Click image for larger version

Name:	Untitled.png
Views:	2873
Size:	41.4 KB
ID:	11876
 
Old 02-18-2013, 05:00 AM   #5
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
@ZackFair
Gr8, When you was typing your comment, I was busy in my comment that's why I couldn't see your comment. See my comment is 2 min after your comment.
Now write your procedure what you did to resolve the issue and make this thread solved.
So future users will take benefit of your experience.
 
Old 02-18-2013, 05:09 AM   #6
ZackFair
LQ Newbie
 
Registered: Oct 2012
Location: Russia
Distribution: Arch, CentOS, RHEL, Debian, Ubuntu
Posts: 15

Original Poster
Rep: Reputation: Disabled
This thread is already solved.
Solution is in the post #3.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO FIX ""The requested URL /phpMyAdmin was not found on this server."" amritpalpathak Linux - Software 20 11-06-2012 02:23 AM
The requested URL could not be retrieved anandnenwani Linux - General 2 11-01-2011 12:25 PM
on url "http://localhost/" error ""The requested URL could not be retrieved " renuaseri Linux - Newbie 1 04-07-2009 01:23 AM
SARG says that URL could not be retrieved because "Connection was Refused" bhowerton Linux - Software 4 10-01-2008 09:41 AM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration