mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-15 16:30:51 -04:00
Fetch an URL that exists
This commit is contained in:
parent
3467456ae4
commit
d213c95024
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ my_connect(isc_task_t *task, isc_event_t *event)
|
|||
* Send a GET string, and set up to receive (and just display)
|
||||
* the result.
|
||||
*/
|
||||
strcpy(buf, "GET /foo HTTP/1.1\r\nHost: www.flame.org\r\nConnection: Close\r\n\r\n");
|
||||
strcpy(buf, "GET / HTTP/1.1\r\nHost: www.flame.org\r\nConnection: Close\r\n\r\n");
|
||||
region.base = isc_mem_get(mctx, strlen(buf) + 1);
|
||||
region.length = strlen(buf) + 1;
|
||||
strcpy((char *)region.base, buf); /* strcpy is safe */
|
||||
|
|
|
|||
Loading…
Reference in a new issue