head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.54 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.52 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.50 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.48 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.46 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.44 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.42 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.40 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.38 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.36 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.34 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.32 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.30 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.28 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.26 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.24 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.22 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.20 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.18 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.2; locks; strict; comment @# @; 1.4 date 2002.10.27.21.54.27; author tron; state dead; branches; next 1.3; 1.3 date 2002.10.12.15.32.16; author tron; state Exp; branches; next 1.2; 1.2 date 2002.03.22.21.59.58; author tron; state dead; branches; next 1.1; 1.1 date 2001.11.21.22.42.04; author tron; state Exp; branches; next ; desc @@ 1.4 log @Update "bidwatcher" to version 1.3.6. Changes since version 1.3.5: - Added Comment field. - Fixed ebay time sync'ing. - Fix bad "Host:" entity-header if a proxy server was used. It used to send "Host: proxy.do.main" instead of "Host: whatever.ebay.com". - It now sends an "User-Agent" string which looks like Mozilla 1.1 including the real operating system and machine. - It support using "POST" for the actual bid. I've succesfully tested this by bidding on an auction. - Fixed stupid bug introduced in 1.3.5 for certain ebay motors auctions - Fixed handling bad DNS responses. @ text @$NetBSD: patch-ad,v 1.3 2002/10/12 15:32:16 tron Exp $ --- bidwatcher.cpp.orig Sat Oct 12 17:17:13 2002 +++ bidwatcher.cpp Sat Oct 12 17:18:32 2002 @@@@ -582,7 +582,7 @@@@ bidurl = new URL(ustring, proxyurl); g_free(ustring); - int returnVal = fetchURL(bidurl, &Buff, TIMEOUT); + int returnVal = fetchURL(bidurl, 1, &Buff, TIMEOUT); if (returnVal != 1) { if (returnVal == 2) showError("Could not obtain bid key: a network error occurred."); @@@@ -662,7 +662,7 @@@@ g_free(url); - retval = fetchURL(bidurl, &Buff, TIMEOUT); + retval = fetchURL(bidurl, 1, &Buff, TIMEOUT); if (retval != NET_SUCCESS) { sprintf(lineBuff,"Bid on %lu FAILED: Error %d connecting to eBay", @@@@ -869,7 +869,7 @@@@ "ReturnUserEmail&requested=%s&userid=%s&pass=%s&iid=%s", name,authID,authPASS,auctionid); URL *emailurl=new URL(WebPage,proxyurl); - int err = fetchURL(emailurl,&Buff,TIMEOUT); + int err = fetchURL(emailurl,0,&Buff,TIMEOUT); delete(emailurl); if ((err == 2) || (err == 4) || (strlen(Buff) < 1000)) { showError("Could not get email address: Network error"); @@@@ -3533,7 +3533,7 @@@@ "MfcISAPICommand=ViewBidItems&userid=%s&completed=0&all=1&rows=200", authID); URL *bidsurl = new URL(WebPage, proxyurl); - returnVal = fetchURL(bidsurl, &Buff, TIMEOUT); + returnVal = fetchURL(bidsurl, 0, &Buff, TIMEOUT); delete(bidsurl); blackLED(); showStatus(""); @@@@ -3613,7 +3613,7 @@@@ sprintf(WebPage, "http://cgi6.ebay.com/aw-cgi/eBayISAPI.dll?" "ViewListedItems&userid=%s&completed=0&sort=3&since=-1", authID); URL *listingurl = new URL(WebPage, proxyurl); - returnVal = fetchURL(listingurl, &Buff, TIMEOUT); + returnVal = fetchURL(listingurl, 0, &Buff, TIMEOUT); delete listingurl; blackLED(); showStatus(""); @@@@ -3828,7 +3828,7 @@@@ infourl = new URL(urlstring, proxyurl); greenLED(); - returnVal = fetchURL(infourl, &HtmlBuff, TIMEOUT); + returnVal = fetchURL(infourl, 0, &HtmlBuff, TIMEOUT); if (returnVal == NET_NETERROR || returnVal == NET_TIMEOUT) { // maybe proxy settings changed @@@@ -3836,7 +3836,7 @@@@ delete(infourl); infourl = new URL(urlstring, proxyurl); - returnVal = fetchURL(infourl, &HtmlBuff, TIMEOUT); + returnVal = fetchURL(infourl, 0, &HtmlBuff, TIMEOUT); } g_free(urlstring); @@@@ -3905,7 +3905,7 @@@@ greenLED(); gettimeofday(&tm_start, NULL); - returnVal = fetchURL(timesyncurl, &HtmlBuff, TIMEOUT); + returnVal = fetchURL(timesyncurl, 0, &HtmlBuff, TIMEOUT); gettimeofday(&tm_end, NULL); t1 = (tm_end.tv_sec + 0.000001 * tm_end.tv_usec) @ 1.3 log @Fix bugs in HTTP protocol handling: 1.) Send correct "Host:" entity-header if a proxy is used. 2.) Supply a more appropriate User Agent intetification. 3.) Use a "POST" for request for the actual bid like the eBay form would. Bump package revision to 2. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update "bidwatcher" package to version 1.3.3. Changes since version 1.3.0: - many bug fixes - improved GUI - experimental bidding daemon @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.1 2001/11/21 22:42:04 tron Exp $ d3 74 a76 10 --- netstuff.cpp.orig Mon Apr 2 06:38:09 2001 +++ netstuff.cpp Wed Nov 21 23:34:18 2001 @@@@ -5,6 +5,7 @@@@ // Tom McNair (tmcnair@@cyberhighway.net) // Wayne Schlitt (wayne@@midwestcs.com) // Ben Byer (bushing@@users.sourceforge.net) +// Kevin Dwyer (kevin@@pheared.net) // // use of this code is restricted to the terms // of the GNU GPL, which should have been included in this @ 1.1 log @Pull in latest bug fixes from the CVS repository which fix e.g problems with loading the configuration and updating auctions. Bump version number to 1.3.0.99 as this is now close to what will be the 1.3.1 release. @ text @d1 1 a1 1 $NetBSD$ @