1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
- #include <netdissect-stdinc.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include "netdissect.h"
- #include "extract.h"
- static const char *httpcmds[] = {
- "GET",
- "PUT",
- "COPY",
- "HEAD",
- "LOCK",
- "MOVE",
- "POLL",
- "POST",
- "BCOPY",
- "BMOVE",
- "MKCOL",
- "TRACE",
- "LABEL",
- "MERGE",
- "DELETE",
- "SEARCH",
- "UNLOCK",
- "REPORT",
- "UPDATE",
- "NOTIFY",
- "BDELETE",
- "CONNECT",
- "OPTIONS",
- "CHECKIN",
- "PROPFIND",
- "CHECKOUT",
- "CCM_POST",
- "SUBSCRIBE",
- "PROPPATCH",
- "BPROPFIND",
- "BPROPPATCH",
- "UNCHECKOUT",
- "MKACTIVITY",
- "MKWORKSPACE",
- "UNSUBSCRIBE",
- "RPC_CONNECT",
- "VERSION-CONTROL",
- "BASELINE-CONTROL",
- NULL
- };
- void
- http_print(netdissect_options *ndo, const u_char *pptr, u_int len)
- {
- txtproto_print(ndo, pptr, len, "http", httpcmds, RESP_CODE_SECOND_TOKEN);
- }
|