Thanks, I saw the Bug.

I'll need to look into why the behaviour varies as you describe.

POST request parameters are normally sent as part of the Body, so I'm
not sure (yet) why the defaults are treated differently in that case.

On 08/02/07, Stuart Findlay <[EMAIL PROTECTED]> wrote:
Thanks Sebb

I've logged the RFE as Bug #41566

One thing I'm still confused about is why the default parameters are
delivered differently when a file is sent with the POST request.

When there is no file they are sent as one entity as "Line-based text
data" but when a file is sent with the request they are each sent as
individual parts on the multipart post.

Stuart

sebb wrote:
> If by defaults, you mean that you have an HTTP Request Defaults
> Configuration element in scope, then yes, you will have to ensure that
> it is no longer in scope.
>
> You may be able to do this by judicious use of an extra Simple
> Controller - put the Defaults there, as well as all the samplers that
> need them. But that may just make the test plan horribly
> complicated...
>
> You could also file a Bugzilla enhancement request, but that will take
> rather longer, though still worth doing ...
>
> S.
> On 07/02/07, Stuart Findlay <[EMAIL PROTECTED]> wrote:
>> Yes that's what I tried but because they're defined in the defaults then
>> they still get wrapped in the multipart.
>>
>> Would my only option be to remove them from the defaults?
>>
>>
>>
>> sebb wrote:
>> > As a work-round, try adding the parameters to the path instead.
>> >
>> > On 07/02/07, Stuart Findlay <[EMAIL PROTECTED]> wrote:
>> >> I should add that the default parameters are not needed in the
>> POST as
>> >> they in the URL so a possible workaround would be to disable the
>> default
>> >> parameters from this post if possible.
>> >>
>> >>
>> >>
>> >> Stuart Findlay wrote:
>> >> > Hi all
>> >> >
>> >> > I have a HTTPRequest POST which is attempting to upload a file
>> to my
>> >> > server.
>> >> >
>> >> > It seems that when I define a file to be sent with the POST,
>> JMeter is
>> >> > wrapping up my default request parameters in the multipart
>> section of
>> >> > the post. This is causing the upload to fail.
>> >> >
>> >> > Any ideas if this is by design or a bug. If the latter is there a
>> >> > known workaround?
>> >> >
>> >> > Thanks, Stuart
>> >> >
>> >> >
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > 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]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>>
>> --
>>
>> Stuart Findlay
>>
>> Senior QA Engineer - Stability
>>
>> Critical Path
>>
>> Critical Path Ireland
>>
>> 42-47, Lower Mount St.,
>>
>> Dublin 2,
>>
>> Ireland
>>
>> Phone:  +353 1 241 5000
>> Fax:    +353 1 241 5170
>> Yahoo IM:       stufindlay
>>
>> www.criticalpath.net <http://www.criticalpath.net>
>>
>> ---------------------------------------------------------------------
>> 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]
>

--

Stuart Findlay

Senior QA Engineer - Stability

Critical Path

Critical Path Ireland

42-47, Lower Mount St.,

Dublin 2,

Ireland

Phone:  +353 1 241 5000
Fax:    +353 1 241 5170
Yahoo IM:       stufindlay

www.criticalpath.net <http://www.criticalpath.net>

---------------------------------------------------------------------
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