On 13/10/2008, Anthony Chadszinow <[EMAIL PROTECTED]> wrote:
> Cheers sebb,
>
>  I was already using a nightly build because it avoided some other bug
> according to the guy that preceded me on this testing project.
>
>  ${__char(13,10)} worked great!
>
>  For reference, that field I was trying to send isn't true XML and the new
> lines have some meaning in its language.
>
>  Once again thanks,

OK, glad it worked.

>  Chad
>
>
>  sebb wrote:
>
> > On 12/10/2008, Anthony Chadszinow <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Gday,
> > >
> > >  Probably a simple question.  In an HTTP Request sampler setup to POST
> data
> > > I need to send a parameter which has new lines in it.  I can't seem to
> be
> > > able to work out how to send those new lines.
> > >
> > >
> >
> > Not easy in JMeter 2.3.2 - you would have to edit the JMX file - or
> > just use a file to send the data.
> >
> > If you are willing to try the nightly build (no guarantees) that has a
> > __char() function which you can use to add CRLF:${ __char(13,10)}
> >
> > However, given that the data looks to be XML, surely the server should
> > be able to cope with it even if there are no linefeeds between tags.
> >
> >
> >
> > >  eg. "bodycopy_data" is the name of the parameter and the data to send
> > > indexed by that name is
> > >  "<val_type>array</val_type>
> > >
> <name_type>string</name_type><name>containerid</name><val_type>integer</val_type><val>1</val>
> > >
> <name_type>string</name_type><name>container_type</name><val_type>string</val_type><val>div</val>
> > >
> <name_type>string</name_type><name>before</name><val_type>boolean</val_type><val>0</val>
> > >
> <name_type>string</name_type><name>attributes</name><val_type>array</val_type>
> > >
> > >
> <name_type>string</name_type><name>identifier</name><val_type>string</val_type><val></val>
> > >
> > >
> <name_type>string</name_type><name>layout_type</name><val_type>string</val_type><val>div</val>
> > >
> > >
> <name_type>string</name_type><name>css_class</name><val_type>string</val_type><val></val>
> > >
> > >
> <name_type>string</name_type><name>content_type</name><val_type>string</val_type><val>content_type_wysiwyg</val>"
> > >
> > >  So there are several new lines in there but whenever I try it all comes
> > > through as a single line on the webserver side.  I tried replacing new
> lines
> > > with \n but that came through as a single line with the slashes in my
> slash
> > > n's escaped with another slash ie. \\n
> > >
> > >  Thanks for your time,
> > >  Chad
> > >
> > >  --
> > >  Anthony Chadszinow
> > >  MySource Classic Lead Developer
> > >
> > >  Squiz
> > >  92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 t:    13000 SQUIZ
> (
> > > Support )
> > >  t:    8507 9900 / 1300 130 661
> > >  f:    8507 9988
> > >  e:    [EMAIL PROTECTED]
> > >  w:    www.matrix.squiz.net
> > >  w:    www.squiz.net
> > >
> > >  Sydney  |  Melbourne  |  Canberra  |  Hobart  |  Wellington  |  London
> > >  Open Source  - Own it  -  Squiz.net
> > >  ----------------------------------------------------
> > >
> > >  IMPORTANT:This email (and any attachments) is commercial-in-confidence
> and
> > >  or may be legally privileged and must not be forwarded, copied or
> shared
> > >  without express permission from Squiz. If you are not the intended
> > >  recipient, you may not legally copy, disclose or use the contents in
> any
> > > way
> > >  and you should contact [EMAIL PROTECTED] immediately and destroy this
> message
> > > and any
> > >  attachments. Thank you.
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > >  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]
> >
> >
> >
> >
>
>  --
>  Anthony Chadszinow
>  MySource Classic Lead Developer
>
>  Squiz
>  92 Jarrett St Leichhardt, Sydney NSW, Australia 2040 t:    13000 SQUIZ (
> Support )
>  t:    8507 9900 / 1300 130 661
>  f:    8507 9988
>  e:    [EMAIL PROTECTED]
>  w:    www.matrix.squiz.net
>  w:    www.squiz.net
>
>  Sydney  |  Melbourne  |  Canberra  |  Hobart  |  Wellington  |  London
>  Open Source  - Own it  -  Squiz.net
>  ----------------------------------------------------
>
>  IMPORTANT:This email (and any attachments) is commercial-in-confidence and
>  or may be legally privileged and must not be forwarded, copied or shared
>  without express permission from Squiz. If you are not the intended
>  recipient, you may not legally copy, disclose or use the contents in any
> way
>  and you should contact [EMAIL PROTECTED] immediately and destroy this message
> and any
>  attachments. Thank you.
>
>

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

Reply via email to