From 1145b231d4b682478bdf052efbade9dbd2df11e8 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 26 Jun 2003 11:41:26 +0000 Subject: [project @ 2003-06-26 11:41:26 by bursa] Implement HTTP redirects. svn path=/import/netsurf/; revision=187 --- debug/netsurfd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'debug/netsurfd.c') diff --git a/debug/netsurfd.c b/debug/netsurfd.c index 81a494ff0..dcb2150ab 100644 --- a/debug/netsurfd.c +++ b/debug/netsurfd.c @@ -14,7 +14,11 @@ void callback(content_msg msg, struct content *c, void *p1, if (msg == CONTENT_MSG_DONE || msg == CONTENT_MSG_ERROR) done = 1; else if (msg == CONTENT_MSG_STATUS) - printf("=== STATUS: %s", c->status_message); + printf("=== STATUS: %s\n", c->status_message); + else if (msg == CONTENT_MSG_REDIRECT) { + printf("=== REDIRECT to '%s'\n", error); + done = 1; + } } int main(int argc, char *argv[]) -- cgit v1.2.3