2008-07-06 14:16:21 +00:00
|
|
|
--- a/main.c
|
|
|
|
+++ b/main.c
|
2010-07-13 09:08:45 +00:00
|
|
|
@@ -41,6 +41,8 @@
|
2007-02-27 10:22:09 +00:00
|
|
|
#include "utils.h"
|
|
|
|
#include "error.h"
|
|
|
|
|
2011-08-01 02:17:57 +00:00
|
|
|
+#define VERSION "1.5.1"
|
2007-02-27 10:22:09 +00:00
|
|
|
+
|
|
|
|
static volatile int stop = 0;
|
|
|
|
|
|
|
|
int quiet = 0;
|
2010-07-13 09:08:45 +00:00
|
|
|
@@ -52,7 +54,7 @@ char last_error[ERROR_BUFFER_SIZE];
|
2007-02-27 10:22:09 +00:00
|
|
|
|
|
|
|
void version(void)
|
|
|
|
{
|
2010-01-16 07:10:45 +00:00
|
|
|
- fprintf(stderr, "HTTPing v" VERSION ", (C) 2003-2010 folkert@vanheusden.com\n");
|
|
|
|
+ fprintf(stderr, "HTTPing v%s (C) 2003-2010 folkert@vanheusden.com\n", VERSION);
|
2007-02-27 10:22:09 +00:00
|
|
|
#ifndef NO_SSL
|
|
|
|
fprintf(stderr, "SSL support included\n");
|
|
|
|
#endif
|
2011-08-01 02:17:57 +00:00
|
|
|
@@ -637,7 +639,7 @@ int main(int argc, char *argv[])
|
2007-02-27 10:22:09 +00:00
|
|
|
if (useragent)
|
|
|
|
sprintf(&request[strlen(request)], "User-Agent: %s\r\n", useragent);
|
|
|
|
else
|
|
|
|
- sprintf(&request[strlen(request)], "User-Agent: HTTPing v" VERSION "\r\n");
|
|
|
|
+ sprintf(&request[strlen(request)], "User-Agent: HTTPing v%s\r\n", VERSION);
|
2007-02-27 22:55:05 +00:00
|
|
|
sprintf(&request[strlen(request)], "Host: %s\r\n", hostname);
|
2007-02-27 10:22:09 +00:00
|
|
|
if (referer)
|
|
|
|
sprintf(&request[strlen(request)], "Referer: %s\r\n", referer);
|