Warning -26663: Content-Length value is missing or invalid [MsgId: MWAR-26663]

287 views
Skip to first unread message

Vickyta :)

unread,
Apr 22, 2010, 4:00:56 PM4/22/10
to LR-Loa...@googlegroups.com
Hello All,

I am trying to execute a script to download a 303 Mb zip file, however
I am getting the following:

Action.c(50): Warning -26663: Content-Length value is missing or
invalid [MsgId: MWAR-26663]

while try to access the URL

web_url("1mb.zip",
"URL=http://x.x.x.x/303mb.zip",
"Resource=1",
"RecContentType=application/zip",
"Referer=",
"Snapshot=t1.inf",
LAST);

And the execution of the script cannot be completed. (Manually the URL
works fine).

I am following the HP article to create the script, the script I have
created works for files from 1 to 153Mb.
1. How to record downloading a file from the server and saving it to a
local hard-drive  HP Software Knowledge Document KM181180
(http://support.openview.hp.com/selfsolve/document/KM181180)
2. How to verify download of a file in Web scripts  HP Software
Knowledge Document KM170011
(http://support.openview.hp.com/selfsolve/document/KM170011)

Any idea?

Thanks!
Vicky

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

James Pulley

unread,
Apr 22, 2010, 4:54:02 PM4/22/10
to lr-loa...@googlegroups.com
"I am following the HP article to create the script, the script I have created works for files from 1 to 153Mb."

So, it would appear that you have run up against a product limit give what you are trying to do

"1. How to record downloading a file from the server and saving it to a local hard-drive  HP Software Knowledge Document KM181180"

You will turn your local hard drive on your load generators into a bottleneck for your entire test. Have you considered that correlating for such a large amount of information is also going to absolutely drive your per user RAM costs extremely high and likely cause hideous swapping on your local generator. I have to ask, what the heck is your goal here? Have you considered that sending files to "file null" or "file 13" has benefits on the load generator?

Usually when situations like this come up people are comingling a functional and performance test, is this the case here? Could you also not accomplish some of the same by examining the server logs to observe the files transferred to various clients?

James Pulley
------------------------------------------------
http://www.loadrunnerbythehour.com/testexecution
------------------------------------------------

Vickyta :)

unread,
Apr 22, 2010, 5:07:44 PM4/22/10
to lr-loa...@googlegroups.com
Hello James,

In fact memory usage is extremely high as you mentioned.

The goal here is to measure the "download time associated with files,
using different sizes of files". I guess if this is a limitation of LR
for example to handle a large size, then we will have to implement
another workaround, like examining the server logs to observe the
files transferred to various clients.

Thanks,
Vicky

James Pulley

unread,
Apr 22, 2010, 7:03:44 PM4/22/10
to lr-loa...@googlegroups.com

You can download files just fine, just don't correlate for their
contents and write them to the hard drive. They will by default on
download just go to the null device (which is infinitely fast by the way
and not subject to read and write contention). You can verify quite
easily in your development by viewing the bytes flying by in the log
files and after your test by looking at your server download logs.
Even if you turned on full server logs it would be more efficient than
correlating and then writing to disk, even though it would still kill
your generator(s).

If you want to go to a single virtual user per generator, then fine,
otherwise you are going to kill your generator(s) with all of your disk
and memory issues. It is going to look and act just like a slow
server, but the actual cause will be a bogged down load generator: a bad
test design.

By the way, activities such as this are also responsible for filling up
hard drives during performance test having the generator OS go into
total lock, being unable to retrieve any of your test results at that
point.

James Pulley
------------------------------------------------
http://www.loadrunnerbythehour.com/PricingMatrix
------------------------------------------------
Prices starting at less than $20/hour USD


On Thu, 2010-04-22 at 15:07 -0600, Vickyta :) wrote:
> Hello James,------------------------------------------------

chaitanya bhatt

unread,
Apr 22, 2010, 10:34:00 PM4/22/10
to lr-loa...@googlegroups.com
Looks like you have a missing header information in your request. Configure your recording options to record all types of headers and try again. Content length of a file is a meta data and technically this is supposed to be stored in the request's header and I don't see it your request.
 
-Chaitanya M Bhatt

Vickyta :)

unread,
Apr 22, 2010, 10:45:48 PM4/22/10
to lr-loa...@googlegroups.com
Hello Chaitanya,

I am not recording the script, I am following the KBs previously sent
since according to the first one, actions such as clicking on "Open"
and "Save as" from the "Download file" window are client side activity
that will not be recorded, and this is my case, once the URL is
launched the “Download Window” will show up.

Is there a way to manually add the missing headers?

Thanks,
Vicky

John Crunk

unread,
Apr 22, 2010, 10:56:03 PM4/22/10
to lr-loa...@googlegroups.com
Is the download method used by the app FTP or http? If FTP use the
appropriate mixed protocol, if http look in the help or search google
for downloading a PDF and use the same procedure.

John Crunk Ph.D ABD
Sent from my iPhone

chaitanya bhatt

unread,
Apr 22, 2010, 11:31:40 PM4/22/10
to lr-loa...@googlegroups.com
The key to this is web_add_auto_header() function to add custom header information to your requests.
 
This can be a tricky task. Constructing the right set of header information can be painful. You have to be certain about what is required and more importantly about the position of the headers that you place, which really decides whether your request returns with a pass or fail.
 
Example:
 
web_add_auto_header("Host","blahblah.*.**.com");
web_add_auto_header("User-Agent","*");
web_add_header("Content-Length","654");

Now, as you see the content length is placed in 3rd position but your http server might expect it before user agent's position. You need to be familiar with HTTP 1.1 and RFC standards to better understand what you really need and what you don't.
 
Chaitanya M Bhatt
 

Vamsi

unread,
Apr 25, 2010, 1:46:50 AM4/25/10
to LoadRunner
Use Fiddler to understand the HTTP communication and add the missing
Header details to the request using web_add_header function.

Regards
Vamsi
http://Performancetestinginfo.blogspot.com


On Apr 23, 8:31 am, chaitanya bhatt <bhatt.chaita...@gmail.com> wrote:
> The key to this is web_add_auto_header() function to add custom header
> information to your requests.
>
> This can be a tricky task. Constructing the right set of header
> information can be painful. You have to be certain about what is required
> and more importantly about the position of the headers that you place, which
> really decides whether your request returns with a pass or fail.
>
> Example:
>
> web_add_auto_header("Host","blahblah.*.**.com");
> web_add_auto_header("User-Agent","*");
> web_add_header("Content-Length","654");
>
> Now, as you see the content length is placed in 3rd position but your http
> server might expect it before user agent's position. You need to be familiar
> with HTTP 1.1 and RFC standards to better understand what you really need
> and what you don't.
>
> Chaitanya M Bhatthttp://www.performancecompetence.com
>
>
>
>
>
> On Fri, Apr 23, 2010 at 8:15 AM, Vickyta :) <vickyt...@gmail.com> wrote:
> > Hello Chaitanya,
>
> > I am not recording the script, I am following the KBs previously sent
> > since according to the first one, actions such as clicking on "Open"
> > and "Save as" from the "Download file" window are client side activity
> > that will not be recorded, and this is my case, once the URL is
> > launched the “Download Window” will show up.
>
> > Is there a way to manually add the missing headers?
>
> > Thanks,
> > Vicky
>
> > On Thu, Apr 22, 2010 at 8:34 PM, chaitanya bhatt
> > <bhatt.chaita...@gmail.com> wrote:
> > > Looks like you have a missing header information in your request.
> > Configure
> > > your recording options to record all types of headers and try again.
> > Content
> > > length of a file is a meta data and technically this is supposed to be
> > > stored in the request's header and I don't see it your request.
>
> > > -Chaitanya M Bhatt
> > >http://www.performancecompetence.com
>
> > >> LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@goog legroups.com>
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > "LoadRunner" group.
> > > To post to this group, send email to LR-Loa...@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@goog legroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > --
> >  You received this message because you are subscribed to the Google
> > "LoadRunner" group.
> > To post to this group, send email to LR-Loa...@googlegroups.com
> > To unsubscribe from this group, send email to
> > LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@goog legroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> --
> You received this message because you are subscribed to the Google "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/LR-LoadRunner?hl=en
Reply all
Reply to author
Forward
0 new messages