ports/misc/bidwatcher/files/patch-bidwatcher.h
David E. O'Brien d89c8acb78 Add
http://sourceforge.net/tracker/download.php?group_id=2973&atid=302973&file_id=112451&aid=1085302
in modified form.

	Due to some changes with ebay they are now requiring signin before
	bidding. It was suggested by some other users that the best way to
	get https support in bidwatcher would be to compile it with libcurl.

NOTE that your mileage may vary if you use a proxy or bid on eBay motors
     or bid on adult items.

Obtained from:	bidwatcher patch# 1084042 in the form of patch# 1085302
2005-01-14 02:44:47 +00:00

36 lines
1.3 KiB
C

diff -urN bidwatcher-1.3.16/bidwatcher.h bidwatcher-1.3.16-SSL-2/bidwatcher.h
--- bidwatcher.h.orig 2004-08-31 02:40:13.000000000 +0200
+++ bidwatcher.h 2004-12-14 17:10:14.000000000 +0100
@@ -122,19 +122,15 @@
#define array_elem(a) (sizeof(a)/sizeof(a[0]))
struct URL {
- struct hostent *hostinfo;
- unsigned int port;
- char url[256], hoststring[256];
+ char fullurl[512], fullurlpost[512];
bool useproxy;
- int numaliases;
- int numaddrs;
char *proxyuser, *proxypass;
URL(); // since there is dynamic memory involved, be safe.
- URL(char *newurl, URL *proxy);
- URL(char *newurl, URL *proxy, char *user, char *pass);
+ URL(char *newurl, char *postval, URL *proxy);
+ URL(char *newurl, char *postval, URL *proxy, char *user, char *pass);
~URL();
- void create(char *newurl, URL *proxy);
+ void create(char *newurl, char *postval, URL *proxy);
};
//
@@ -399,7 +395,7 @@
void translate_date(char *date);
bool GetAucInfo(char *Buff, struct auctioninfo *NewAuction);
int calcTimeDiff (char *buffer);
-int fetchURL(URL *url, int Post, char **Buff, double timeOut, int redir);
+int fetchURL(URL *url, int Post, char **Buff, char *cookiejar, int redir);
char *stristr(const char *haystack, const char *needle);
char translate_special(const char *input, int *len);
char *getTimeStamp();