[Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly
SourceForge.net
noreply at sourceforge.net
Fri Dec 5 14:53:01 CET 2003
Patches item #854131, was opened at 2003-12-04 11:20
Message generated for change (Comment added) made by jsivak
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: John Sivak (jsivak)
Date: 2003-12-05 17:52
Message:
Logged In: YES
user_id=679094
Wierd, I thought I attached the patch the first time..
I'll try it again..
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-12-04 11: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