I have my generator pages protected by as password and this has been working well for some time now; however whenever my cron job runs to generate the sitemap, all it returns is the HTMl from the logon page (see below):
X-Powered-By: PHP/4.4.7
Set-Cookie: PHPSESSID=75a8b0ac138359b709f3016aeb6084f7; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Configuration: XML, ROR, Text, HTML Sitemap Generator - (c) www.xml-sitemaps.com</title>
<meta http-equiv="Content-type" content="text/html;" charset="iso-8859-15" />
<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
<link rel=stylesheet type="text/css" href="pages/style.css">
</head>
<body>
<div align="center">
<h1><a href="./">Standalone XML Sitemap Generator</a></h1>
<div id="menu">
<ul id="nav">
<li><a class="navact" href="index.php?op=config">Configuration</a></li>
<li><a href="index.php?op=crawl">Crawling</a></li>
<li><a href="index.php?op=view">View Sitemap</a></li>
<li><a href="index.php?op=analyze">Analyze</a></li>
<li><a href="index.php?op=chlog">ChangeLog</a></li>
<li><a href="index.php?op=l404">Broken Links</a></li>
<li><a href="documentation.html">Documentation</a></li>
</ul>
</div>
<div id="outerdiv">
<div id="sidenote">
</div>
<div id="shifted">
<h2>Login</h2>
<form action="index.php" method="POST">
<div class="inptitle">Username:</div>
<input type="text" name="user" size="30" value="">
<div class="inptitle">Password:</div>
<input type="password" name="pass" size="30" value="">
<div class="inptitle">
<input class="button" type="submit" name="login" value="Login" style="width:150px;height:30px">
</div>
</form>
</div>
<br style="clear:both;"/>
</div>
<div id="copyright">
<!--1033-->
Standalone Sitemap Generator (PHP) v2.5.1, 2006-11-25|
<a href="license.html">Read License</a>
<br>
Copyright (c)2005,2006 <a href="https://www.xml-sitemaps.com">XML Sitemaps</a>
<br style="clear:both;"/>
</div>
</body>
</html>
Is there a way to make a cron job work with a password-protected generator?