Hi I have made a comment to your bug report, because I realized it is the same as bug 41518. http://issues.apache.org/bugzilla/show_bug.cgi?id=41518
I have also just attached a patch to 41518, which I think fulfills your needs. We'll have to see if the patch is accepted. Regards Alf ---- Opprinnelig melding ---- Fra: [EMAIL PROTECTED] Til: [EMAIL PROTECTED] Emne: RE: Can I change the HTTP Request content-type? Dato: Fri, 13 Apr 2007 08:56:10 +0100 >I have logged a JMeter enhancement as requested: > >http://issues.apache.org/bugzilla/show_bug.cgi?id=42111 > >Thanks for the positive response. > >-----Original Message----- >From: Ramesh Jaganathan [mailto:[EMAIL PROTECTED] >Sent: 12 April 2007 18:01 >To: JMeter Users List >Subject: Re: Can I change the HTTP Request content-type? > >Hi Alf, > >Your suggesstion is great and it would help to send binary data as >the body >(which we need to do :-) by appropriately setting the type . > >Thanks, >Ramesh > >On 4/12/07, Alf Høgemark <[EMAIL PROTECTED]> wrote: >> >> The "Content encoding field" only controls the "charset=" part of >the >> "Content-Type" header being sent. >> >> Currently, if only a file name is specified, that file is sent as >the >> only content of the "post body", if it is a HTTP POST request. >> The Content-type is set to application/x-www-form-urlencoded in >that case. >> Maybe it should be changed, so that it uses the mimetype specified >for >> the file ? >> I.e., if filename and mimetype, but not "file field name" is >specified, >> then the file is sent as HTTP POST body, with Content-Type header >equal >> to the mimetype ? >> >> If others think that is a good idea, I can easily make a patch for >that. >> >> >> I suggest you raise an enhancement bugzilla request, so that your >> request does not get lost. >> >> Regards >> Alf >> >> Thomson, Alex wrote: >> > I would like to send an HTTP Post referencing a file which >contains the >> > body contents, however I would like to set the Content-Type in >the POST >> > header to "Content-Type: text/plain" >> > >> > Is this possible? >> > >> > There seems to be a content encoding field on the HTTP request >sampler >> > GUI screen, but no way to change it. >> > >> > Thanks, >> > >> > Alex >> > >> > This email message and any attachments thereto are intended only >for use >> by the addressee(s) named above, and may contain legally privileged >and/or >> confidential information. If the reader of this message is not the >intended >> recipient, or the employee or agent responsible to deliver it to >the >> intended recipient, you are hereby notified that any dissemination, >> distribution or copying of this communication is strictly >prohibited. If you >> have received this communication in error, please immediately >notify the >> [EMAIL PROTECTED] and destroy the original message >> > This email message and any attachments thereto are intended only >for use >> by the addressee(s) named above, and may contain legally privileged >and/or >> confidential information. If the reader of this message is not the >intended >> recipient, or the employee or agent responsible to deliver it to >the >> intended recipient, you are hereby notified that any dissemination, >> distribution or copying of this communication is strictly >prohibited. If you >> have received this communication in error, please immediately >notify the >> [EMAIL PROTECTED] and destroy the original message. >> > >> > NDS Limited Registered office: One Heathrow Boulevard, 286 Bath >Road, >> West Drayton, Middlesex, UB7 0DQ, United Kingdom >> > A company registered in England and Wales Registered no. >> 3080780 VAT no. GB 603 8808 40-00 >> > >> > >> > >--------------------------------------------------------------------- >> > To unsubscribe, e-mail: >[EMAIL PROTECTED] >> > For additional commands, e-mail: >[EMAIL PROTECTED] >> > >> > >> > >> >> >--------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: >[EMAIL PROTECTED] >> >> >This email message and any attachments thereto are intended only for >use by the addressee(s) named above, and may contain legally >privileged and/or confidential information. If the reader of this >message is not the intended recipient, or the employee or agent >responsible to deliver it to the intended recipient, you are hereby >notified that any dissemination, distribution or copying of this >communication is strictly prohibited. If you have received this >communication in error, please immediately notify the >[EMAIL PROTECTED] and destroy the original message >This email message and any attachments thereto are intended only for >use by the addressee(s) named above, and may contain legally >privileged and/or confidential information. If the reader of this >message is not the intended recipient, or the employee or agent >responsible to deliver it to the intended recipient, you are hereby >notified that any dissemination, distribution or copying of this >communication is strictly prohibited. If you have received this >communication in error, please immediately notify the >[EMAIL PROTECTED] and destroy the original message. > >NDS Limited Registered office: One Heathrow Boulevard, 286 Bath >Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom >A company registered in England and Wales Registered no. 3080780 >VAT no. GB 603 8808 40-00 > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

