Mercurial > mplayer.hg
comparison libmpdemux/network.c @ 6466:ebffa928a5d4
Added mplayer version in the user-agent field.
author | bertrand |
---|---|
date | Thu, 20 Jun 2002 08:50:40 +0000 |
parents | 87612a287882 |
children | a48a7315ed88 |
comparison
equal
deleted
inserted
replaced
6465:b59ad8bbbd72 | 6466:ebffa928a5d4 |
---|---|
24 #include "network.h" | 24 #include "network.h" |
25 #include "http.h" | 25 #include "http.h" |
26 #include "url.h" | 26 #include "url.h" |
27 #include "asf.h" | 27 #include "asf.h" |
28 #include "rtp.h" | 28 #include "rtp.h" |
29 | |
30 #include "../version.h" | |
29 | 31 |
30 extern int verbose; | 32 extern int verbose; |
31 extern m_config_t *mconfig; | 33 extern m_config_t *mconfig; |
32 | 34 |
33 static struct { | 35 static struct { |
267 server_url = url; | 269 server_url = url; |
268 http_set_uri( http_hdr, server_url->file ); | 270 http_set_uri( http_hdr, server_url->file ); |
269 } | 271 } |
270 snprintf(str, 80, "Host: %s", server_url->hostname ); | 272 snprintf(str, 80, "Host: %s", server_url->hostname ); |
271 http_set_field( http_hdr, str); | 273 http_set_field( http_hdr, str); |
272 http_set_field( http_hdr, "User-Agent: MPlayer"); | 274 http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION); |
273 http_set_field( http_hdr, "Connection: closed"); | 275 http_set_field( http_hdr, "Connection: closed"); |
274 if( http_build_request( http_hdr )==NULL ) { | 276 if( http_build_request( http_hdr )==NULL ) { |
275 return -1; | 277 return -1; |
276 } | 278 } |
277 | 279 |