DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42111>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42111

           Summary: Need to configure content-type in HTTP POST header
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTTP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I would like to be able to configure JMeter 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"

I used nightly build r525254.

The email thread from the jmeter-user-list is reproduced below:

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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to