Get My eBay items

Subscribe to Get My eBay items 2 post(s), 2 voice(s)

 
Avatar (SF) Christi... 2 post(s)

Hi,
getting auctions from My eBay was not working for me in
JBidWatcher 0.9. After a little debugging I came up with a
patch to CookieJar.java that solved the problem for me:

diff u z:\dev\jbidwatcher-0.9\CookieJar.java.orig z:\dev\jbidwatcher-0.9\CookieJar.java
-
- z:\dev\jbidwatcher-0.9\CookieJar.java.orig Wed Mar 26 15:06:54 2003
+ z:\dev\jbidwatcher-0.9\CookieJar.java Wed Mar 26 15:06:54 2003
@ -108,7 +108,7 @
return getAllCookiesFromPage(redirect);
}

- if(nextKey.startsWith(“Set-Cookie”)) {
+ if(nextKey.startsWith(“Set-cookie”)) {
newCookie = new Cookie(uc.getHeaderField(i));
_cookies.put(newCookie.getKey(), newCookie);
}

Cheers,
Christian

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,
Oooh! Patches! Interesting… I’ll have to check their respones, that would be frustrating. Anyhow, I’m applying that as follows (to handle both potential cases):
if(nextKey.startsWith(“Set-Cookie”) ||
nextKey.startsWith(“Set-cookie”)) {
.
.
.
}