Re: Login failing all of a sudden

Jon Baumgartner <jon-2Y5kQnAlmJQeFak//[email protected]> Fri, 03 Sep 2004 10:34:27 -0400
Newsgroups gmane.mail.yosucker.general
Message-ID <[email protected]>
On 9/3/2004 9:57 AM Jon Baumgartner wrote:

> This is really weird. I haven't seen any obvious changes on the web
>
>site. Is there a way to make yosucker more verbose so I can see where 
>it's failing? I've already got DEBUG set to 1, but that's not showing 
>anything other than the login failed message.
>  
>

Quoting myself again ...

Okay, I figured out at least where it's happening, although I don't know 
why exactly.

It happens in "step 2" in sputnik.pm; the ShortPage::parse function. YS 
is looking for a "Location:" header, which doesn't exist. These are the 
headers it is trying to parse:

***
HTTP/1.1 200 OK
Date: Fri, 03 Sep 2004 14:28:03 GMT
P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR 
ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi 
PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
Refresh: 900; URL=http://www.yahoo.com/
Cache-Control: private
Pragma: no-cache
Expires: Thu, 05 Jan 1995 22:00:00 GMT
Connection: close
Content-Type: text/html

<html>
<head>

***

The lack of a "Location:" header is apparently what's causing YS to die.

jon


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click