main.c and http.c

implement the flag_h for usage and use marcos instead of magic number.
Merge pull request #25 from ftmomoaaa/master

main.c and http.c(Use marcos instead of magic number.)