summaryrefslogtreecommitdiff
path: root/ws2a/showbug.c
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-09 16:08:31 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-09 16:08:31 -0400
commit4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70 (patch)
tree66da68060b7a9b1d46880d965be7f0b3146ae921 /ws2a/showbug.c
parentea0c4c66550c2a649374b23989d05b11c550ca4f (diff)
downloadwebpage-4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70.tar.gz
webpage-4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70.tar.bz2
webpage-4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70.zip
Starting working on showing bugs
Diffstat (limited to 'ws2a/showbug.c')
-rw-r--r--ws2a/showbug.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ws2a/showbug.c b/ws2a/showbug.c
new file mode 100644
index 0000000..b8c46e2
--- /dev/null
+++ b/ws2a/showbug.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdint.h>
+
+int main(){
+ char* data = getenv("QUERY_STRING");
+ //char data[20] = "?id=1";
+ char* hardip = getenv("REMOTE_ADDR");
+ printf("%s%c%c\n",
+ "Content-Type:text/html;charset=iso-8859-1",13,10);
+ printf("Data:%s",data);
+}