Mercurial > pidgin
comparison src/proxy.c @ 3098:778e4e27c33e
[gaim-migrate @ 3112]
HTTP Proxy now HTTP compliant.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Thu, 28 Mar 2002 18:03:14 +0000 |
| parents | 76f84e1a3b8f |
| children | f4f4232f4e83 |
comparison
equal
deleted
inserted
replaced
| 3097:58588d33a3ca | 3098:778e4e27c33e |
|---|---|
| 274 g_free(phb); | 274 g_free(phb); |
| 275 return; | 275 return; |
| 276 } | 276 } |
| 277 fcntl(source, F_SETFL, 0); | 277 fcntl(source, F_SETFL, 0); |
| 278 | 278 |
| 279 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\nHost = %s:%d\r\n", phb->host, phb->port, | 279 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\nHost: %s:%d\r\n", phb->host, phb->port, |
| 280 phb->host, phb->port); | 280 phb->host, phb->port); |
| 281 if (send(source, cmd, strlen(cmd), 0) < 0) { | 281 if (send(source, cmd, strlen(cmd), 0) < 0) { |
| 282 close(source); | 282 close(source); |
| 283 phb->func(phb->data, -1, GAIM_INPUT_READ); | 283 phb->func(phb->data, -1, GAIM_INPUT_READ); |
| 284 g_free(phb->host); | 284 g_free(phb->host); |
