[Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly

SourceForge.net noreply at sourceforge.net
Thu Dec 4 08:21:01 CET 2003


Patches item #854131, was opened at 2003-12-04 11:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Nobody/Anonymous (nobody)
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.



----------------------------------------------------------------------

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