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]

Reply via email to