[Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly
SourceForge.net
noreply at sourceforge.net
Thu Dec 4 08:47:06 CET 2003
Patches item #854131, was opened at 2003-12-04 16:20
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: John Sivak (jsivak)
>Assigned to: Ton Voon (tonvoon)
Summary: check_http not following redirects properly
Initial Comment:
With the lastest snapshot, check_http.c (revision
#1.54) is not following relative URL redirects from an IIS
server properly.
If the original URL is:
http://foo.com/jtest1/
and this redirects to:
themes/corp/login.asp?u=1
the current plugin will "assemble" the URL as:
http://foo.com:80themes/corp
The remainder of the the relative url is chopped at the
last '/' and the server_url doesn't appear to be used at
all.
In looking at the code, it appears that the url and
server_url where just "appended" in the wrong order..
Attached is the output from cvs diff -u check_http.c
after applying the fix.
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2003-12-04 16:46
Message:
Logged In: YES
user_id=664364
John,
I'm very interested in this. Can you post the patch please?
Ton
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880
More information about the Devel
mailing list