|
|
|
@ -5518,12 +5518,11 @@ static int HTPBodyReassemblyTest01(void)
|
|
|
|
|
Flow flow;
|
|
|
|
|
memset(&flow, 0x00, sizeof(flow));
|
|
|
|
|
void *parser = AppLayerParserStateAlloc();
|
|
|
|
|
memset(&parser, 0x00, sizeof(parser));
|
|
|
|
|
htp_tx_t tx;
|
|
|
|
|
memset(&tx, 0, sizeof(tx));
|
|
|
|
|
|
|
|
|
|
hstate.f = &flow;
|
|
|
|
|
flow.alparser = &parser;
|
|
|
|
|
flow.alparser = parser;
|
|
|
|
|
|
|
|
|
|
uint8_t chunk1[] = "--e5a320f21416a02493a0a6f561b1c494\r\nContent-Disposition: form-data; name=\"uploadfile\"; filename=\"D2GUef.jpg\"\r";
|
|
|
|
|
uint8_t chunk2[] = "POST /uri HTTP/1.1\r\nHost: hostname.com\r\nKeep-Alive: 115\r\nAccept-Charset: utf-8\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nConnection: keep-alive\r\nContent-length: 68102\r\nReferer: http://otherhost.com\r\nAccept-Encoding: gzip\r\nContent-Type: multipart/form-data; boundary=e5a320f21416a02493a0a6f561b1c494\r\nCookie: blah\r\nAccept-Language: us\r\n\r\n--e5a320f21416a02493a0a6f561b1c494\r\nContent-Disposition: form-data; name=\"uploadfile\"; filename=\"D2GUef.jpg\"\r";
|
|
|
|
|