Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo_picture.c @ 25622:e4d738813cd8
Backport the parts of b859960a4a19f57f20db0536c1815a6d79e08e36 that apply to
this branch, and also apply 162a734100aafd62b7338baa81b04510c6b66921.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Fri, 19 Jun 2009 01:18:18 +0000 |
parents | 5ec72dbdd28e |
children | 01f1929d0936 |
comparison
equal
deleted
inserted
replaced
25621:88364ec4cdaf | 25622:e4d738813cd8 |
---|---|
132 | 132 |
133 data = g_new0(struct yahoo_fetch_picture_data, 1); | 133 data = g_new0(struct yahoo_fetch_picture_data, 1); |
134 data->gc = gc; | 134 data->gc = gc; |
135 data->who = g_strdup(who); | 135 data->who = g_strdup(who); |
136 data->checksum = checksum; | 136 data->checksum = checksum; |
137 /* TODO: Does this need to be MSIE 5.0? */ | |
137 url_data = purple_util_fetch_url(url, use_whole_url, | 138 url_data = purple_util_fetch_url(url, use_whole_url, |
138 "Mozilla/4.0 (compatible; MSIE 5.0)", FALSE, | 139 "Mozilla/4.0 (compatible; MSIE 5.0)", FALSE, |
139 yahoo_fetch_picture_cb, data); | 140 yahoo_fetch_picture_cb, data); |
140 if (url_data != NULL) { | 141 if (url_data != NULL) { |
141 yd = gc->proto_data; | 142 yd = gc->proto_data; |
497 | 498 |
498 host = purple_account_get_string(account, "xfer_host", YAHOO_XFER_HOST); | 499 host = purple_account_get_string(account, "xfer_host", YAHOO_XFER_HOST); |
499 port = purple_account_get_int(account, "xfer_port", YAHOO_XFER_PORT); | 500 port = purple_account_get_int(account, "xfer_port", YAHOO_XFER_PORT); |
500 tmp = g_strdup_printf("%s:%d", host, port); | 501 tmp = g_strdup_printf("%s:%d", host, port); |
501 header = g_strdup_printf("POST %s%s/notifyft HTTP/1.1\r\n" | 502 header = g_strdup_printf("POST %s%s/notifyft HTTP/1.1\r\n" |
502 "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5)\r\n" | 503 "User-Agent: " YAHOO_CLIENT_USERAGENT "\r\n" |
503 "Cookie: T=%s; Y=%s\r\n" | 504 "Cookie: T=%s; Y=%s\r\n" |
504 "Host: %s\r\n" | 505 "Host: %s\r\n" |
505 "Content-Length: %" G_GSIZE_FORMAT "\r\n" | 506 "Content-Length: %" G_GSIZE_FORMAT "\r\n" |
506 "Cache-Control: no-cache\r\n\r\n", | 507 "Cache-Control: no-cache\r\n\r\n", |
507 use_whole_url ? "http://" : "", use_whole_url ? tmp : "", | 508 use_whole_url ? "http://" : "", use_whole_url ? tmp : "", |