mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* gpgkeys_hkp.c (http_get, http_post): Use CRLF for line endings.
This commit is contained in:
parent
4567d779ed
commit
ce13db5e3c
@ -1,5 +1,7 @@
|
|||||||
2002-08-27 David Shaw <dshaw@jabberwocky.com>
|
2002-08-27 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* gpgkeys_hkp.c (http_get, http_post): Use CRLF for line endings.
|
||||||
|
|
||||||
* gpgkeys_hkp.c: Include util.h on RISC OS as per Stefan. Include
|
* gpgkeys_hkp.c: Include util.h on RISC OS as per Stefan. Include
|
||||||
a replacement for hstrerror() for those platforms (such as RISC
|
a replacement for hstrerror() for those platforms (such as RISC
|
||||||
OS) that don't have it.
|
OS) that don't have it.
|
||||||
|
@ -144,7 +144,7 @@ void http_disconnect(void)
|
|||||||
|
|
||||||
int http_get(const char *op,const char *search)
|
int http_get(const char *op,const char *search)
|
||||||
{
|
{
|
||||||
fprintf(server,"GET /pks/lookup?op=%s&search=%s HTTP/1.0\n\n",op,search);
|
fprintf(server,"GET /pks/lookup?op=%s&search=%s HTTP/1.0\r\n\r\n",op,search);
|
||||||
|
|
||||||
if(verbose>2)
|
if(verbose>2)
|
||||||
fprintf(console,"gpgkeys: HTTP GET /pks/lookup?op=%s&search=%s HTTP/1.0\n",
|
fprintf(console,"gpgkeys: HTTP GET /pks/lookup?op=%s&search=%s HTTP/1.0\n",
|
||||||
@ -159,9 +159,9 @@ int http_post(const char *data)
|
|||||||
int result;
|
int result;
|
||||||
|
|
||||||
fprintf(server,
|
fprintf(server,
|
||||||
"POST /pks/add HTTP/1.0\n"
|
"POST /pks/add HTTP/1.0\r\n"
|
||||||
"Content-type: application/x-www-form-urlencoded\n"
|
"Content-type: application/x-www-form-urlencoded\n"
|
||||||
"Content-Length: %d\n\n%s",strlen(data),data);
|
"Content-Length: %d\r\n\r\n%s",strlen(data),data);
|
||||||
|
|
||||||
if(verbose>2)
|
if(verbose>2)
|
||||||
fprintf(console,
|
fprintf(console,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user