aboutsummaryrefslogtreecommitdiffstats
path: root/packet-http.c
AgeCommit message (Collapse)AuthorFilesLines
2004-07-18Move dissectors to epan/dissectors directory.gram1-1759/+0
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-09Use "iscntrl()", rather than "isprint()", to test whether a character isguy1-6/+7
a CTL in HTTP, ICAP, and RTSP. Check for non-ASCII characters in ICAP and RTSP, just as we do in HTTP. The headers in those protocols are just "headers", not "MIME headers", at least in the RFCs (common usage nonwithstanding; not all of those headers are for MIME stuff such as Content-Type). Add some RFC numbers. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11357 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-02From Yaniv Kaul: HKP is HTTP-based and runs on port 11371.guy1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11069 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-10As noted by Thomas Anders, the Heimdal libroken library has a base64_decode()obiot1-3/+3
function with a different signature than the one defined in util.c/util.h. For this reason, we need to rename our base64_decode() routine. The routine is now called epan_base64_decode(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10840 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-09Move the creation of the de-chunked data source to the place where the dataobiot1-31/+41
is being dechunked; this will highlight the correct bytes when selecting the compressed data from the protocol tree. Add comments for explaining what happens where. Strip trailing white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10832 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-08D'oh - remove leading '+' marks from manually applying a patch.obiot1-9/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10822 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-08From Jerry Talkington:obiot1-5/+27
* Add comments on why we may not use tvb_free() at some places. * Add a new data source for a reassembled chunked entity. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10821 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-08Fix a tvb_free() of a tvbuffer created as a tvb_new_subset(), which causedobiot1-16/+18
double freeing of memory. Add a comment at the tvb_new_subset() call so future developers will be warned. Always add the compressed entity as an item in the protocol tree, so it can be exported by selecting the packet bytes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10819 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-07Add Uncompressed/Compressed to the compressed data source label for clarity.obiot1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10816 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-05From Jerry Talkington:obiot1-19/+81
- Helper functions for uncompressing compressed tvbuffers. - Compressed content coding dissection in HTTP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10799 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-04Chunked data reassembly *is* done in "req_resp_hdrs_do_reassembly()".guy1-12/+5
That means that the description of the "desegment HTTP bodies" preference setting shouldn't speak of it causing the dissector to trust the content length (which makes it somewhat long anyway), as it also desegments chunked bodies that lack a Content-Length header; expand the tooltip for the preference to speak of that. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10787 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-04Note that the way we currently handle the chunked encoding doesn't workguy1-1/+8
if the HTTP data takes more than one packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10785 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-30Add a generic media dissector. The dissectors trying to find a suitableobiot1-1/+9
media dissector for a given media type (value of a Content-Type header) must provide the logic to fall-back to this media dissector upon no match. Note that you must set the pinfo->match_string to the media type name, and if the media type is specified with parameters, then those parameters can be added to pinfo->private_data. If there are no parameters, or the parameter decoding is not implemented, you must set pinfo->private_data to NULL. Known TODOs: - Fix the WSP parameter handling so it accompanies any media dissector. Simplest approach is to retrieve the header field label from the WSP Content-Type field and to search for a semicolon in it (or by using the string length of the content type string representation). - Verify that that subdissection always works in the WSP dissector, even when the protocol tree is not being built. - Implement the media dissector in the remaining dissectors that use the media type string table. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10743 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-30Beware: sscanf() only operates on C strings. A pointer returned byobiot1-4/+10
tvb_get_ptr() is not necessarily NULL terminated, hence a NULL terminated string must be generated from the returned pointer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10742 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-29From Jerry Talkington: move the chunks subtree to the HTTP protocol tree.obiot1-21/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10732 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-26From Jerry Talkington:obiot1-18/+244
- Dissect chunked transfer-coded body in HTTP - Update email address git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10710 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-12Put in a comment noting a possible memory leak.guy1-1/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10588 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-21Get the Content-Encoding and Transfer-Encoding headers and, for now,guy1-4/+77
don't try to dissect the body if there's any special encoding. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10151 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-01packet-dcerpc-afs4int.cjmayer1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9938 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-19From Yaniv Kaul: add Shoutcast's ICY as a response(?).guy1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9745 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-17splitted some of the preferences texts into more than one line,ulfl1-2/+2
to reduce the size of the preferences dialog. This becoming necessary, as some of the texts were huge git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9693 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-16Add support for MIME multipart dissection.obiot1-13/+51
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9670 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-10Add support for a generic line-based text data dissector.obiot1-1/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9623 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-09Add support for the message/http media type defined in HTTP.obiot1-1/+62
TODO: the HTTP dissector does not deal yet with chunked coding. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9617 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-01Clean up the blank line handling a bit.guy1-20/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9515 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-31Remove redundant protocol names from preference values.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9505 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-28If we've seen an HTTP request or response or header line, and the lineguy1-1/+39
we're looking at looks as if it could be the beginning of a header line but stops at the end of the tvbuff before we see the colon for the header line, throw an exception rather than treating it as "not HTTP". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9458 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-27Properly handle 1xx, 204, and 304 responses, which don't contain aguy1-3/+20
message body. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9457 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-27Fix some comments.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9455 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-27When testing the first line of HTTP data, process what data we have -guy1-4/+5
don't give up if we don't have the full line. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9450 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-24In the loop that processes lines in HTTP requests and replies, loop asguy1-5/+11
long as there's reported data, don't just loop through the data in the tvbuff. Fix some problems with short frames. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9438 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-23Not all headers in HTTP, RTSP, SIP, etc. are entity headers; rename someguy1-56/+58
files, routines, data structures, etc.. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9428 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-23In HTTP-over-TCP, handle more than one HTTP message in a TCP segment.guy1-10/+57
Don't do that for HTTP-over-UDP, however. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9427 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-23Process the content length.guy1-6/+74
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9426 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-23Note that we should handle the Content-Length entity header.guy1-1/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9424 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-22Pull the code to do reassembly of the request/response line, entityguy1-113/+11
headers, and body into a separate routine, for use by other dissectors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9402 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-07Use a cleanup handler to free the Content-Type header value, so it getsguy1-7/+16
freed even if we throw an exception after processing the Content-Type header but before we call a subdissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9191 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-07Change the name of the variable holding the dissector table pointer toguy1-4/+4
match the previous checkin. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9190 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-07Rename the "http.content_type" dissector table to "media_type", as it'sguy1-3/+5
for use in any dissector that uses Internet media types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9189 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-18Content-Type values are case-insensitive; force them to lower caseguy1-2/+22
(subdissectors must register their Content-Type values as all-lower-case). Don't include parameters in the value we look up in the Content-Type subdissector table. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9000 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-18Add an "http.content_type" dissector table,guy1-18/+72
Process the Content-Type header, and, if one is found, look up its value in the aforementioned dissector table. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8999 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-07Make a field for the Content-Type entity header, and give it an EH_guy1-1/+8
value so it can be handled specially (with a string dissector table so that subdissectors can register for particular content types). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8903 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-06Add a mechanism to handle various entity headers, allowing theirguy1-81/+257
(string) values to be put into the protocol tree as fields and allowing some headers to get special treatment, and use it for Authorization, Proxy-Authorization, WWW-Authenticate, and Proxy-Authenticate. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8892 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-04If we've already constructed a subset tvbuff, don't construct anguy1-21/+21
identical one and throw away the first one. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8876 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-27From Lo�c Minier: HTTP header and payload desegmentation.guy1-14/+171
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8786 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-02The code in an HTTP reply is a response code, not a response method.guy1-20/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8346 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-02From Jean-Michel Fayard: BOOTP/DHCP, HTTP, and WSP statistics taps.guy1-1/+47
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8345 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-11Get the right length for methods with an "M-" prefix.guy1-2/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7837 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-10Add http.request.method field, and a subtree under the HTTP Reqeust in whichgram1-5/+43
to put the field, and any future field extracted from the HTTP Request record. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7834 f5534014-38df-0310-8fa8-9805f1628bb7