HttpMessage - setRequestBody / setResponseBody to update content length?

73 views
Skip to first unread message

psiinon

unread,
Apr 17, 2014, 4:54:55 AM4/17/14
to zaproxy...@googlegroups.com
The HttpMessage setRequestBody / setResponseBody methods dont currently update the content length.
This has resulted in a few bugs, including http://code.google.com/p/zaproxy/issues/detail?id=1156
This catches me out all the time, and I dont think its just me ;)

I'd like to update these methods to update the relevant content lengths by default, with an option to update the body and not set the content length.
Any objections?
Anyone know of any code that relies on the content length being wrong?

I've been meaning to do this for a while but didnt want to do it just before the 2.3.0 release ;)

Cheers,

Simon

kingthorin+owaspzap

unread,
Apr 17, 2014, 9:21:05 AM4/17/14
to zaproxy...@googlegroups.com
Seems like a good move to me.

thc...@gmail.com

unread,
Apr 29, 2014, 11:01:24 PM4/29/14
to zaproxy...@googlegroups.com
Hi.

Sounds good to me.

Best regards.
--
You received this message because you are subscribed to the Google Groups "OWASP ZAP Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages