semsol/arc2 — pull request #43 by cgutteridge (2013-03-24 13:43:58+00:00)
Title:  	Altered Host: header so that it does not include 443 on https requests. 

This was confusing some webservers, specifically the one at data.ox.ac.uk.

The previous code showed the port number on https unless the port number was '80'. I've altered it to not include 443 in host requests when using https.

The following test should show the fix in action.

parse( $uri );

$errors = $parser->getErrors();
if( sizeof($errors) )
{
print join( "
\n",$errors)."
\n";
}
else
{
print "loaded ".sizeof( $parser->getTriples() )." triples
\n";
}