jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Ribin Roy" <jose...@aztecsoft.com>
Subject RE: Send a file with the HTTP Request
Date Mon, 18 Feb 2008 15:12:43 GMT

Is it okay if you save the image file locally and send it with the
request

-----Original Message-----
From: Massimo Forno [mailto:Massimo.Forno@deltatre.com]
Sent: Monday, February 18, 2008 8:18 PM
To: jmeter-user@jakarta.apache.org
Subject: Send a file with the HTTP Request

Hi,

I'm trying to send a file with the HTTP Request, but the problem is that
the file path is an URL.

Example:

The Path of the HTTP Request is: /Folder1/SubFolder1/Test.html
I need to send a picture with the above HTTP Request located at:
http://www.testpics.it/images/100.jpg

If I specify that URL in the "Send a File With the Request" section of
the HTTP Request the Response result is an error like:

java.io.FileNotFoundException: 'http:\www.testpics.it\images\100.jpg'
(The filename, directory name, or volume label syntax is incorrect) at
java.io.FileInputStream.open(Native Method) at
java.io.FileInputStream.(Unknown Source) at
java.io.FileInputStream.(Unknown Source) at
org.apache.jmeter.protocol.http.sampler.PostWriter.writeFileToStream(Pos
tWriter.java:365) at
org.apache.jmeter.protocol.http.sampler.PostWriter.sendPostData(PostWrit
er.java:106) at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sendPostData(HTTPSam
pler.java:118) at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.j
ava:479) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:889) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:875) at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:298) at
java.lang.Thread.run(Unknown Source)


Any idea?

Thanks in advance,
Massimo


Massimo Forno - Test & Release Manager

deltatre informatica s.p.a.- Via F.Millio, 41 - 10141 - Torino - ITALY
Tel. +39 011 384 18923 -  <http://www.deltatre.com/> www.deltatre.com
___________________________________________________
P Please consider the environment before printing this email.
___________________________________________________

This message is confidential and may be legally privileged or otherwise
protected from disclosure. If you are not the intended recipient, please
telephone or email the sender and delete this message and any attachment
from your system; you must not copy or disclose the contents of this
message or any attachment to any other person.  Copyright in documents
created by or on behalf of this firm remains vested in the firm, and we
assert our moral rights.

Questo messaggio, i suoi contenuti ed i contenuti dei suoi allegati sono
riservati e confidenziali. Se non siete i destinatari del messaggio o lo
avete ricevuto per errore, Vi preghiamo di darcene comunicazione e di
rimuovere il messaggio stesso e gli allegati dal Vostro sistema; i
contenuti di questo messaggio e degli allegati non devono essere copiati
o diffusi in alcun modo. Sono riservati tutti i diritti relativi al
messaggio ed ai documenti allegati.



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION
intended for the sole use of the addressee(s). If you have received it in error, please contact
the sender by return email, notify your system manager and destroy the original message and
any copies thereof. Any review, use, disclosure or distribution is unlawful. Please check
this email and any attachments for the presence of viruses. The Company accepts no  liability
for any damage caused by any virus transmitted by this email. The views or opinions presented
in this e-mail are solely those of the author and do not necessarily represent those of the
company.
The Company reserves the right to monitor, review and store the content of all messages sent
to or from this e-mail address.

www.aztecsoft.com
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message