OK, this is making me nucking futs (sorry) and I just don't know what
else to do. I'm hoping someone will be intelligent enough to show me how
stupid I am.:) I am running 3.0-rc3.
The scenario is that I am using a third party package for which all
administration is run through a single cgi, admin.cgi.
If you call admin.cgi for the first time with no parameters, it displays
a login page. A successful login will return a cookie with the ID and
password (I know, I didn't write this) for future use. You then go to
various sub-pages and it, evidently, reviews your id and pw fields
everytime.
Although insecure, this actually works pretty well from the browser
window. What I need to do is programatically log in and store the
cookie, then go to a page, push a button, and have the app do something
for me automatically. Seemed simple enough when I started this weeks ago...
(I've tried all three cookie policies before someone suggests this.)
Here's the useful part of the code...
...
String response;
// Prepare login parameters
NameValuePair userid = new NameValuePair("id", User);
NameValuePair password = new NameValuePair("pw", Password);
//and login
response=execute(UrlBase, new NameValuePair[] {userid, password});
response=execute(UrlBase, new NameValuePair[] {
new NameValuePair("setup_options_edit","1")});
...
/**
* execute a method
* @param url the url to be executed
* @param parms a name value pair array of parameters to pass to the
* script.
* @return a string containing the HTML returned
* @throws heavyweight.Exception for a variety of problems
*/
private String execute(String url, NameValuePair[] parms)
throws heavyweight.Exception
{
PostMethod method = new PostMethod(url);
if(parms==null)
{
throw new IllegalArgumentException("Must pass paramters to
execute (url, parms). For no parms, use execute(String)\n");
}
method.setRequestBody(parms);
//execute the method
String responseBody = null;
int tries=0;
boolean successful=false;
do
{
try
{
Client.executeMethod(method);
responseBody = method.getResponseBodyAsString();
successful=true;
} catch (HttpException he)
{
StringBuffer sb=new StringBuffer("Http error connecting
to '");
sb.append(url);
sb.append("'\n");
MyLog.error(sb.toString());
MyLog.error(he.getMessage());
if(++tries>RETRY_COUNT)
{
throw new heavyweight.Exception(sb.toString(), he);
}
} catch (IOException ioe)
{
StringBuffer sb=new StringBuffer("Unable to connect to '");
sb.append(url);
sb.append("'\n");
MyLog.error(sb.toString());
MyLog.error(ioe.getMessage());
if(++tries>RETRY_COUNT)
{
throw new heavyweight.Exception(sb.toString(), ioe);
}
}
} while(!successful);
//write out the request headers
System.out.println("*** Request ***");
System.out.println("Request Path: " + method.getPath());
System.out.println("Request Query: " + method.getQueryString());
Header[] requestHeaders = method.getRequestHeaders();
for (int i=0; i<requestHeaders.length; i++){
System.out.print(requestHeaders[i]);
}
//write out the cookies
if(MyLog.isDebugEnabled())
{
MyLog.debug("*** Cookies ***");
for(Cookie ck:Client.getState().getCookies())
{
MyLog.debug(ck.toString());
}
}
//write out the response headers
System.out.println("*** Response ***");
System.out.println("Status Line: " + method.getStatusLine());
Header[] responseHeaders = method.getResponseHeaders();
for (int i=0; i<responseHeaders.length; i++){
System.out.print(responseHeaders[i]);
}
//write out the response body
System.out.println("*** Response Body ***");
System.out.println(responseBody);
//clean up the connection resources
method.releaseConnection();
return responseBody;
}
And here's the output I'm printing to try to debug this.
rex version 0.9.2
copyright 2005, Heavyweight Software, all rights reserved
Process started at 09/05/2005 at 05:25:54 PM
1 [main] INFO rex.ItoolsRepublish - Constructor
1 [main] INFO rex.ItoolsRepublish - Constructor
9 [main] DEBUG rex.ItoolsRepublish - base:www.ohiohomelocator.com
9 [main] DEBUG rex.ItoolsRepublish - base:www.ohiohomelocator.com
10 [main] DEBUG rex.ItoolsRepublish - user:bmedia
10 [main] DEBUG rex.ItoolsRepublish - user:bmedia
10 [main] DEBUG rex.ItoolsRepublish - passwd:solutions
10 [main] DEBUG rex.ItoolsRepublish - passwd:solutions
1243 [main] WARN org.apache.commons.httpclient.HttpMethodBase -
Invalid cookie header: "id=bmedia; expires=Mon,12-Sep-2005 20:05:00
GMT;". Invalid expires attribute: Unparseable date: "Mon,12-Sep-2005
20:05:00 GMT"
1243 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Invalid
cookie header: "id=bmedia; expires=Mon,12-Sep-2005 20:05:00 GMT;".
Invalid expires attribute: Unparseable date: "Mon,12-Sep-2005 20:05:00 GMT"
1248 [main] WARN org.apache.commons.httpclient.HttpMethodBase -
Invalid cookie header: "pw=solutions; expires=Mon,12-Sep-2005 20:05:00
GMT;". Invalid expires attribute: Unparseable date: "Mon,12-Sep-2005
20:05:00 GMT"
1248 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Invalid
cookie header: "pw=solutions; expires=Mon,12-Sep-2005 20:05:00 GMT;".
Invalid expires attribute: Unparseable date: "Mon,12-Sep-2005 20:05:00 GMT"
1263 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Going
to buffer response body of large or unknown size. Using
getResponseAsStream instead is recommended.
1263 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Going
to buffer response body of large or unknown size. Using
getResponseAsStream instead is recommended.
*** Request ***
Request Path: /cgi-bin/listman/exec/admin.cgi
Request Query: null
User-Agent: Jakarta Commons-HttpClient/3.0-rc3
Host: www.ohiohomelocator.com
Content-Length: 22
Content-Type: application/x-www-form-urlencoded
8067 [main] DEBUG rex.ItoolsRepublish - *** Cookies ***
8067 [main] DEBUG rex.ItoolsRepublish - *** Cookies ***
8068 [main] DEBUG rex.ItoolsRepublish - listing_search=
8068 [main] DEBUG rex.ItoolsRepublish - listing_search=
8069 [main] DEBUG rex.ItoolsRepublish - listing_keyword=
8069 [main] DEBUG rex.ItoolsRepublish - listing_keyword=
8069 [main] DEBUG rex.ItoolsRepublish - listing_pagenum=1
8069 [main] DEBUG rex.ItoolsRepublish - listing_pagenum=1
*** Response ***
Status Line: HTTP/1.1 200 OK
Date: Mon, 05 Sep 2005 21:26:00 GMT
Server: Apache/1.3.33 (Unix) mod_jk/1.2.8 Sun-ONE-ASP/4.0.0
mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11
FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Set-Cookie: id=bmedia; expires=Mon,12-Sep-2005 20:05:00 GMT;
Set-Cookie: pw=solutions; expires=Mon,12-Sep-2005 20:05:00 GMT;
Set-Cookie: listing_search=;
Set-Cookie: listing_keyword=;
Set-Cookie: listing_pagenum=1;
Transfer-Encoding: chunked
Content-Type: text/html
*** Response Body ***
<html>
<head>
<title>Realty Manager</title>
<meta name="robots" content="noindex,nofollow">
<style type="text/css"><!--
a { text-decoration: none; color: #0000CC; }
a:hover { text-decoration: underline; }
a.fmb { text-decoration: none; color: #000000; }
a:hover.fmb { text-decoration: none; color: #000000; }
/* Menu bar font */
.fmb { font-family: ms sans serif, sans-serif; font-weight:
normal; color: #000000; font-size: 11px; text-decoration: none; };
.ftb { font-family: ms sans serif, arial, sans-serif;
font-weight: bold; color: #FFFFFF; font-size: 12px; text-decoration:
none; }; /* Font Title Bar */
--></style>
<script language="Javascript"><!--
// determine which browser we're dealing with
var ie = document.all ? true : false; // internet explorer
var ns = document.layers ? true : false; // netscape navigator <= 4
var mz = !ie && !ns ? true : false; // mozilla (netscape 6+)
// Check for CSS Support
if (navigator.userAgent.indexOf("MSIE 5") >= 0 ||
navigator.userAgent.indexOf("MSIE 6") >= 0) { CSS = true; }
else { CSS = false; }
document.write ('<style type="text/css">');
if (CSS) {
document.write ('.NavLink { COLOR: #000000; text-decoration:
none; }');
document.write ('.NavUp { BORDER-STYLE: solid;
BORDER-WIDTH: 1; BORDER-COLOR: #FFFFFF #999999 #999999 #FFFFFF; PADDING:
0 1 1 1; background-color: #CCCCCC; }');
document.write ('.NavDown { BORDER-STYLE: solid;
BORDER-WIDTH: 1; BORDER-COLOR: #999999 #FFFFFF #FFFFFF #999999; PADDING:
1 0 0 2; background-color: #CCCCCC; }');
document.write ('.NavOff { BORDER-STYLE: solid;
BORDER-WIDTH: 1; BORDER-COLOR: #CCCCCC #CCCCCC #CCCCCC #CCCCCC; PADDING:
0 1 1 1; background-color: #CCCCCC; }');
document.write ('input.button { background-color: #FFFFFF;
background-image: url(../../../images/button.gif); height: 16; width:
77; border: none; font-family: verdana, sans-serif; font-weight:
normal;font-size: 10px; color: #000000; letter-spacing: -0.5pt; cursor:
hand; }');
document.write ('input.button2 { background-color: #EEEEEE;
background-image: url(../../../images/button.gif); height: 16; width:
77; border: none; font-family: verdana, sans-serif; font-weight:
normal;font-size: 10px; color: #000000; letter-spacing: -0.5pt; cursor:
hand; }');
document.write ('input.button_sm { background-color: #FFFFFF;
background-image: url(../../../images/button_sm.gif); height: 16; width:
46; border: none; font-family: verdana, sans-serif; font-weight: normal;
font-size: 10px; color: #000000; letter-spacing: -0.5pt; cursor: hand; }');
}
document.write ('</style>');
// Menu Button Functions //
function btnUp(obj) { obj.className = "NavUp"; }
function btnHide(obj) { obj.className = "NavOff"; }
function btnDown(obj) { obj.className = "NavDown"; }
function browse_dir(field_ref){
for (var form_number = 0; document.forms[form_number] !=
field_ref.form; form_number++) {
if (form_number > 100) { alert('Cannot find element in
document.forms[]'); return false; }
}
var field_name = 'forms[' + form_number + '].' + field_ref.name;
var sdir = escape(field_ref.value);
window.open('admin.cgi?browse_dir=1&field_name=' + field_name +
'&sdir=' +
sdir,"PopUp",'resizable=yes,location=no,scrollbars=yes,toolbar=no,menubar=no,directories=no,status=yes,height=350,width=500');
return true;
}
function browse_file(field_ref) {
for (var form_number = 0; document.forms[form_number] !=
field_ref.form; form_number++) {
if (form_number > 100) { alert('Cannot find element in
document.forms[]'); return false; }
}
var field_name = 'forms[' + form_number + '].' + field_ref.name;
var sdir = escape(field_ref.value);
window.open('admin.cgi?browse_file=1&field_name=' + field_name +
'&sdir=' +
sdir,"PopUp",'resizable=yes,location=no,scrollbars=yes,toolbar=no,menubar=no,directories=no,status=yes,height=350,width=500');
return true;
}
function win_popup(url,h,w,rval) {
window.open(url,"PopUp",'resizable=yes,location=no,scrollbars=yes,toolbar=no,menubar=no,directories=no,status=yes,height='+h+',width='+w);
if (rval == true) { return true; }
if (rval == false) { return false; }
}
function Help(num) { // Popup a help window
var win1 =
window.open("admin.cgi?help="+num,"HelpWin","width=240,height=350,toolbar=no,resizable=yes,scrollbars=yes,directories=no");
}
//--></script>
</head>
<body bgcolor="#336699" marginwidth=0 marginheight=15 leftmargin=0>
<table border=0 cellspacing=0 cellpadding=0><tr><td><!-- fix ns6 table
height % bug -->
<form method="post" action="admin.cgi"></td></tr></table>
<div align=center>
<table border="0" cellpadding="0" cellspacing="0" width=590>
<tr>
<td rowspan=12><img src="../../../images/ui_top_left.gif" width="7"
height="48"></td>
<td width=576 bgcolor="#CCCCCC"><img src="../../../images/spacer.gif"
height=1 width=1></td>
<td rowspan=12><img src="../../../images/ui_top_right.gif" width="7"
height="48"></td>
</tr>
<tr><td bgcolor="#FFFFFF"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
<tr><td bgcolor="#999999"><img src="../../../images/spacer.gif"
height=2 width=1></td></tr>
<tr>
<td bgcolor="#003399" height=18>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td><font face="ms sans serif, arial, sans-serif" color="#FFFFFF"
style="font-size: 12px;"><b> Realty Manager </b></font></td>
<td align=right><img src="../../../images/ui_top_btn.gif" width=38
height=18 border=0 usemap="#ui_top_btn"></td>
</tr>
</table>
</td>
</tr>
<tr><td bgcolor="#666666"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
<tr><td bgcolor="#FFFFFF"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
<tr>
<td bgcolor="#CCCCCC" height=18>
<table border=0 cellspacing=0 cellpadding=0 width=100%
height=18><tr><td valign=center>
<table border=0 cellpadding=0 cellspacing=0
background="../../../images/spacer.gif">
<tr>
<!-- menubar -->
<td bgcolor="#CCCCCC" onmousedown="btnDown(this)";
onmouseover="btnUp(this)" onmouseout="btnHide(this)"
onclick="location.href='admin.cgi?listing_list=1'" CLASS="NavOff"><A
class="fmb" onfocus="blur()"
href="admin.cgi?listing_list=1"> Listing Editor </a></td>
<td bgcolor="#CCCCCC" onmousedown="btnDown(this)";
onmouseover="btnUp(this)" onmouseout="btnHide(this)"
onclick="location.href='admin.cgi?homepage_list=1'" CLASS="NavOff"><A
class="fmb" onfocus="blur()"
href="admin.cgi?homepage_list=1"> Homepage Editor </a></td>
<td bgcolor="#CCCCCC" onmousedown="btnDown(this)";
onmouseover="btnUp(this)" onmouseout="btnHide(this)"
onclick="location.href='admin.cgi?userman_list=1'" CLASS="NavOff"><A
class="fmb" onfocus="blur()"
href="admin.cgi?userman_list=1"> User Manager </a></td>
<td bgcolor="#CCCCCC" width=98%><img
src="../../../images/spacer.gif" height=1 width=1 border=0></td>
<td bgcolor="#CCCCCC" onmousedown="btnDown(this)";
onmouseover="btnUp(this)" onmouseout="btnHide(this)"
onclick="location.href='admin.cgi?setup_options_edit=1'"
CLASS="NavOff"><A class="fmb" onfocus="blur()"
href="admin.cgi?setup_options_edit=1"> Setup Options </a></td>
<td bgcolor="#CCCCCC" onmousedown="btnDown(this)";
onmouseover="btnUp(this)" onmouseout="btnHide(this)"
onclick="location.href='admin.cgi?logoff=1'" CLASS="NavOff"><A
class="fmb" onfocus="blur()"
href="admin.cgi?logoff=1"> Logoff </a></td>
<!-- /menubar -->
</tr>
</table>
</td></tr></table>
</td>
</tr>
<tr><td bgcolor="#666666"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
<tr><td bgcolor="#FFFFFF"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
<tr><td bgcolor="#999999"><img src="../../../images/spacer.gif"
height=2 width=1></td></tr>
<tr><td bgcolor="#666666"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
<tr><td bgcolor="#000000"><img src="../../../images/spacer.gif"
height=1 width=1></td></tr>
</table>
<map name="ui_top_btn">
<area shape="circle" coords="9,9, 9" href="javascript:Help(10)"
title="Click for Help" onfocus="blur()">
<area shape="circle" coords="27,9, 9" href="admin.cgi?logoff=1"
title="Click to Logoff" onfocus="blur()">
</map>
<!--
Realty Manager v2.52 (Build: 18.1966)
License #1116 ~ DEMO INSTALLATION ~ www.bmediasolutions.com
Execute time: 0 seconds
-->
<table border="0" cellpadding="0" cellspacing="0" width=590>
<tr>
<td bgcolor="#FFFFFF" background="../../../images/ui_mid_left.gif"
rowspan=3><img src="../../../images/spacer.gif" width="12" height="1"
border="0"></td>
<td bgcolor="#FFFFFF"><img src="../../../images/spacer.gif"
width="566" height="6" border="0"></td>
<td bgcolor="#FFFFFF" background="../../../images/ui_mid_right.gif"
rowspan=3><img src="../../../images/spacer.gif" width="12" height="1"
border="0"></td>
</tr>
<tr><td bgcolor="#FFFFFF"><font face="arial,sans-serif"
style="font-size: 12px;"><input type=hidden name="listing_list" value=1>
<table border=0 cellspacing=0 cellpadding=7 width=100%><tr><td
align=center>
<p><table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td
bgcolor="#999999">
<table border=0 width=100% cellspacing=1 cellpadding=0><tr><td
bgcolor="#EEEEEE">
<table border=0 width=100% cellspacing=0 cellpadding=0><tr>
<td align=left height=22><font face="arial,sans-serif"
style="font-size: 13px;"><b> Listing Editor</b></font></td>
</tr></table>
</td></tr></table>
</td></tr></table>
<table border=0 width=100% cellspacing=8 cellpadding=0>
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=1>
<tr>
<td>
<font face="arial,sans-serif"
style="font-size:12px">Search </font><br>
<select name="search">
<option value="all">All Listings
<option value="lby" >Listings listed by
<option value="1">Address
<option value="2">MLS #
<option value="3">City
<option value="4">State
<option value="5">Price
<option value="6">Preview Description
<option value="7">Full Description
<option value="8">Type
<option value="9">Bedrooms
<option value="10">Bathrooms
<option value="11">Stories
<option value="12">Square Feet
<option value="13">Lot Size
<option value="14">Age of Home
<option value="15">Fireplaces
<option value="16">Near School
<option value="17">Near Transit
<option value="18">Ocean View
<option value="19">Lake View
<option value="20">Mountain View
<option value="21">Ocean Waterfront
<option value="22">Lake Waterfront
<option value="23">River Waterfront
<option value="24">Appliances
</select>
</td>
<td>
<font face="arial,sans-serif" style="font-size:12px">for
keyword</font><br>
<input type=text name="keyword" value=""
style="font-size:12px"5><br>
</td>
<td valign=bottom align=right> <input type=submit
name="listing_list" value="Go"></td>
</tr>
</table>
</td>
<td align=center>
<table border=0 cellspacing=0 cellpadding=1>
<tr><td align=center><font face="arial,sans-serif"
style="font-size:12px">Found 7226 of 7226</font></td></tr>
<tr><td align=center><font face="arial,sans-serif"
style="font-size:12px"><a href="admin.cgi?listing_list=1&pagenum=723"
title="Last Page"><<</a> Page 1 of 723 <a
href="admin.cgi?listing_list=1&pagenum=2" title="Next
Page">>></a></font></td></tr>
</table>
</td>
</tr>
</table>
<!-- insert error message here -->
<center>
</center>
<table border=0 cellspacing=1 cellpadding=1 width=100%>
<tr>
<td bgcolor="#CCCCFF" width=44%><font style="font-size:12px"
face="arial,sans-serif"><b> Address</b></font></td>
<td bgcolor="#CCCCFF" width=25%><font style="font-size:12px"
face="arial,sans-serif"><b> Listed by</b></font></td>
<td bgcolor="#CCCCFF" align=center width=11%><font
style="font-size:12px" face="arial,sans-serif"><b>Status</b></font></td>
<td bgcolor="#CCCCFF" align=center width=20% colspan=2><font
face="arial,sans-serif" style="font-size:12px"><b>Action</b></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2002235</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2002235">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2002235">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003512</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003512">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003512">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003515</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003515">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003515">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003528</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003528">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003528">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003529</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003529">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003529">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003533</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003533">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003533">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003535</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003535">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003535">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003536</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003536">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003536">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003537</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003537">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003537">erase</a></font></td>
</tr>
<tr>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> 2003539</font></td>
<td bgcolor="#EEEEFF"><font face="arial,sans-serif"
style="font-size:12px"> </font></td>
<td bgcolor="#EEEEFF" align=center><font face="arial,sans-serif"
style="font-size:12px">visible
</font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_edit=2003539">modify</a></font></td>
<td bgcolor="#EEEEFF" align=center width=10%><font
face="arial,sans-serif" style="font-size:12px"><a
href="admin.cgi?listing_confirm_erase=2003539">erase</a></font></td>
</tr>
</table>
</td></tr></table>
<table border=0 cellspacing=7 cellpadding=0 width=100%>
<tr>
<td align=right><font style="font-family: sans-serif; font-size: 10px;">
<input type="submit" class="button" name="listing_add" value=" Add ">
<input type="submit" class="button" name="listing_listall" value="
List All ">
</td>
</tr>
</table>
</font></td></tr>
<tr><td bgcolor="#FFFFFF"><img src="../../../images/spacer.gif"
width="566" height="6" border="0"></td></tr>
<tr>
<td colspan=3 height=22 background="../../../images/ui_bot.gif"
align=center valign=top>
<table border=0 cellspacing=0 cellpadding=0 width=570 height=18><tr>
<td align=left background=""><font face="ms sans
serif,arial,sans-serif" size=1>Current User: bmedia (superuser)</font></td>
<td align=right background=""><font face="ms sans
serif,arial,sans-serif" size=1></font></td>
</tr></table>
</td>
</tr>
</table>
</body>
</html>
<!--
Realty Manager v2.52 (Build: 18.1966)
License #1116 ~ DEMO INSTALLATION ~ www.bmediasolutions.com
Execute time: 7 seconds
-->
8353 [main] WARN org.apache.commons.httpclient.HttpMethodBase -
Invalid cookie header: "id=; expires=Mon,12-Sep-2005 20:05:07 GMT;".
Invalid expires attribute: Unparseable date: "Mon,12-Sep-2005 20:05:07 GMT"
8353 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Invalid
cookie header: "id=; expires=Mon,12-Sep-2005 20:05:07 GMT;". Invalid
expires attribute: Unparseable date: "Mon,12-Sep-2005 20:05:07 GMT"
8355 [main] WARN org.apache.commons.httpclient.HttpMethodBase -
Invalid cookie header: "pw=; expires=Mon,12-Sep-2005 20:05:07 GMT;".
Invalid expires attribute: Unparseable date: "Mon,12-Sep-2005 20:05:07 GMT"
8355 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Invalid
cookie header: "pw=; expires=Mon,12-Sep-2005 20:05:07 GMT;". Invalid
expires attribute: Unparseable date: "Mon,12-Sep-2005 20:05:07 GMT"
8356 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Going
to buffer response body of large or unknown size. Using
getResponseAsStream instead is recommended.
8356 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Going
to buffer response body of large or unknown size. Using
getResponseAsStream instead is recommended.
*** Request ***
Request Path: /cgi-bin/listman/exec/admin.cgi
Request Query: null
User-Agent: Jakarta Commons-HttpClient/3.0-rc3
Host: www.ohiohomelocator.com
Cookie: listing_search=
Cookie: listing_keyword=
Cookie: listing_pagenum=1
Content-Length: 20
Content-Type: application/x-www-form-urlencoded
8419 [main] DEBUG rex.ItoolsRepublish - *** Cookies ***
8419 [main] DEBUG rex.ItoolsRepublish - *** Cookies ***
8420 [main] DEBUG rex.ItoolsRepublish - listing_search=
8420 [main] DEBUG rex.ItoolsRepublish - listing_search=
8420 [main] DEBUG rex.ItoolsRepublish - listing_keyword=
8420 [main] DEBUG rex.ItoolsRepublish - listing_keyword=
8421 [main] DEBUG rex.ItoolsRepublish - listing_pagenum=1
8421 [main] DEBUG rex.ItoolsRepublish - listing_pagenum=1
*** Response ***
Status Line: HTTP/1.1 200 OK
Date: Mon, 05 Sep 2005 21:26:07 GMT
Server: Apache/1.3.33 (Unix) mod_jk/1.2.8 Sun-ONE-ASP/4.0.0
mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11
FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Set-Cookie: id=; expires=Mon,12-Sep-2005 20:05:07 GMT;
Set-Cookie: pw=; expires=Mon,12-Sep-2005 20:05:07 GMT;
Transfer-Encoding: chunked
Content-Type: text/html
*** Response Body ***
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Realty Manager</title>
<meta name="robots" content="noindex,nofollow">
<style type="text/css">
<!--
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.menubar { text-decoration: none; color: #000000; font-size:9pt; }
.menubar:hover { text-decoration: none; color: #0000CC; }
.menubar:active { text-decoration: none; color: #0000CC; }
-->
</style>
<script language="Javascript"><!--
function Help(num) { // Popup a help window
var win1 =
window.open("admin.cgi?help="+num,"HelpWin","width=240,height=350,toolbar=no,resizable=yes,scrollbars=yes,directories=no");
}
//--></script>
</head>
<body bgcolor="#336699" text="#000000" link="#0000CC" vlink="#0000CC"
alink="#0000CC" marginwidth=0 marginheight=15 topmargin=15 leftmargin=0>
<form method=post action="admin.cgi">
<table border=0 cellspacing=0 cellpadding=0 width=100%
height=90%><tr><td align=center>
<table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3"><img src="../../../images/login_realty.jpg"
width="176" height="250" border="0"></td>
<td valign="top" height=80><img src="../../../images/logo_realty.gif"
width="223" height="81" border="0"></td>
<td rowspan="3" bgcolor="#000000"><img
src="../../../images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td height=168 width=223 valign=top align=center>
<font size=1><br></font>
<input type="hidden" name="logoff" value=1>
<table border=0 cellspacing=0 cellpadding=1 width=180>
<tr>
<td>
<font face="ms sans serif,arial" size=1>
<b>Session Expired</b><br><br>
You've been automatically logged off due to inactivity.
<Br><br>If you think you've received this message in error please make
sure you have javascript and cookies enabled.<br><br>
<div align=right><font style="font-family: sans-serif;
font-size: 10px;"><input type="submit" class="button_sm" value=" ok
"></font></div>
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" bgcolor="#000000" height=1><img
src="../../../images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
</table>
</td></tr></table>
</form>
</body>
</html>
<!--
Realty Manager v2.52 (Build: 18.1966)
License #1116 ~ DEMO INSTALLATION ~ www.bmediasolutions.com
Execute time: 0 seconds
-->
Process ended at 09/05/2005 at 05:26:03 PM
Sorry for the junk, but the response to the login is quite long. as you
can see, the login appears to work, but when I go back, it says that my
session has expired and clears the id and pw cookies.
It looks like somehow I'm not sending back the same cookies as I'm
getting. I'm trying a simple second query, it just keeps not working.
Anyone have any ideas, please?????
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]