Changeset 10578 for branches/1.9x/third-party/miniupnp/minisoap.c
- Timestamp:
- May 1, 2010, 4:21:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.9x/third-party/miniupnp/minisoap.c
r10285 r10578 1 /* $Id: minisoap.c,v 1.1 8 2009/12/04 11:29:18nanard Exp $ */1 /* $Id: minisoap.c,v 1.19 2010/04/12 20:39:41 nanard Exp $ */ 2 2 /* Project : miniupnp 3 3 * Author : Thomas Bernard … … 76 76 unsigned short port, 77 77 const char * action, 78 const char * body) 78 const char * body, 79 const char * httpversion) 79 80 { 80 81 int bodysize; … … 94 95 snprintf(portstr, sizeof(portstr), ":%hu", port); 95 96 headerssize = snprintf(headerbuf, sizeof(headerbuf), 96 /* "POST %s HTTP/1.1\r\n" */ 97 "POST %s HTTP/1.0\r\n" 97 "POST %s HTTP/%s\r\n" 98 98 "Host: %s%s\r\n" 99 99 "User-Agent: " OS_STRING ", UPnP/1.0, MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n" … … 105 105 "Pragma: no-cache\r\n" 106 106 "\r\n", 107 url, h ost, portstr, bodysize, action);107 url, httpversion, host, portstr, bodysize, action); 108 108 #ifdef DEBUG 109 109 printf("SOAP request : headersize=%d bodysize=%d\n",
Note: See TracChangeset
for help on using the changeset viewer.