[httperf] Size of the request

Rafael Ordanini rafaelordanini at gmail.com
Tue Aug 31 15:54:46 PDT 2010


Yes, add new headers works.

Thank you Martin.

Regards,

2010/8/31 Arlitt, Martin <martin.arlitt at hp.com>

>  Hi Rafael
>
>
>
> The only way I am aware to do this is to add one or more request headers;
> for example, in the httperf command line include –add-header=”Extra-Header:
> This is padding\n”.
>
>
>
> According to Section 7.1 of the HTTP specification (RFC 2616),
> “unrecognized header fields SHOULD be ignored by the recipient”. If the
> server you are using does not ignore it (resulting in an error rather than a
> successful transfer of the requested object), then I’m not sure what you can
> do.
>
>
>
> Please keep in mind that HTTP requests are not fixed lengths. Thus if the
> request URI changes, you may have to revise the added header to keep the
> overall request size to a desired value (e.g., 150 bytes). If you are using
> a session-based workload, this approach may not work either.
>
>
>
> Also, in case you are not aware, you can use –print-request=header to see
> the contents of the request being sent to the server, and
> –print-reply=header to see the response headers that are returned.
>
>
>
> Thanks
>
> Martin
>
>
>
>
>  ------------------------------
>
> *From:* httperf-bounces at linux.hpl.hp.com [mailto:
> httperf-bounces at linux.hpl.hp.com] *On Behalf Of *Rafael Ordanini
> *Sent:* Tuesday, August 31, 2010 3:03 PM
>
> *To:* httperf at linux.hpl.hp.com
> *Subject:* Re: [httperf] Size of the request
>
>
>
> No, I'm talking about the request size. As the results shows:
>
>
>
> *Request size [B]: 62.0*
>
>
>
> Is it possible change the body of the request to change that 62 bytes to,
> for example, 150 bytes?
>
>
>
> Regards,
>
>
>
>
>
> 2010/8/31 ricardo figueiredo <ricardoogrande at gmail.com>
>
> Ok.
>
> I think that Rafael can be confusing request and response.
> I imagined that his doubt were about how increase response time of Web
> Server.
>
> It's just my opinion.
>
> --
> Muito Obrigado
> Ricardo
>
>
>
>  On Tue, Aug 31, 2010 at 11:17 AM, Arlitt, Martin <martin.arlitt at hp.com>
> wrote:
>
> Hi Ricardo
>
>
>
> You can add request headers/bodies with httperf. Response headers/bodies
> are the responsibility of the Web server that httperf contacts.
>
>
>
> Thanks
>
> Martin
>
>
>
>
>   ------------------------------
>
> *From:* httperf-bounces at linux.hpl.hp.com [mailto:
> httperf-bounces at linux.hpl.hp.com] *On Behalf Of *ricardo figueiredo
> *Sent:* Tuesday, August 31, 2010 7:13 AM
>
>
> *To:* httperf at linux.hpl.hp.com
>
> *Cc:* Rafael Ordanini
> *Subject:* Re: [httperf] Size of the request
>
>
>
> Request or Response ??
>
> --
> Muito Obrigado
> Ricardo
>
> On Tue, Aug 31, 2010 at 11:08 AM, Arlitt, Martin <martin.arlitt at hp.com>
> wrote:
>
> Hi Rafael
>
>
>
> If you are referring to the header sizes, you can add additional headers
> with –add-header (see the httperf man page about this option). If you are
> referring to the size of a request body, you can vary the size of the
> contents that are POSTed to the server (e.g., see the httperf man page on
> –wsesslog).
>
>
>
> Thanks
>
> Martin
>
>
>
>
>   ------------------------------
>
> *From:* httperf-bounces at linux.hpl.hp.com [mailto:
> httperf-bounces at linux.hpl.hp.com] *On Behalf Of *Rafael Ordanini
> *Sent:* Tuesday, August 31, 2010 5:22 AM
> *To:* httperf at linux.hpl.hp.com
> *Subject:* [httperf] Size of the request
>
>
>
> Someone knows how could I change the size of the request?
>
>
>
> Regards,
>
> --
> Rafael Ordanini
> Ciência da Computação /  8º semestre
> UNIFESP - São José dos Campos
> Soli Deo Gloria
>
>
> _______________________________________________
> httperf mailing list
> httperf at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/
>
>
>
>
>
>
> _______________________________________________
> httperf mailing list
> httperf at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/
>
>
>
>
> --
> Rafael Ordanini
> Ciência da Computação /  8º semestre
> UNIFESP - São José dos Campos
> Soli Deo Gloria
>
> _______________________________________________
> httperf mailing list
> httperf at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/
>



-- 
Rafael Ordanini
Ciência da Computação /  8º semestre
UNIFESP - São José dos Campos
Soli Deo Gloria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20100831/dd006a40/attachment-0001.htm


More information about the httperf mailing list