[httperf] How can pass an upload file to httperf?

Ken Mamitsuka kenm at sharpcast.com
Wed Nov 21 14:26:03 PST 2007


I want to test http PUT with an upload file, much like the curl -T
option. I'm able to upload some content using the -wsesslog option (and
having some text content in the file), however, this seems kind of hacky
and limited.

 

I was hoping the function would work something like:

 

$ curl -v -X PUT
http://localhost:33306/files/22452b09-19cc-46f8-9bc9-cc301ece319f -T
yosemite07.JPG

* About to connect() to localhost port 33306

*   Trying 127.0.0.1... connected

* Connected to localhost (127.0.0.1) port 33306

> PUT /files/22452b09-19cc-46f8-9bc9-cc301ece319f HTTP/1.1

> User-Agent: curl/7.15.4 (i686-pc-cygwin) libcurl/7.15.4 OpenSSL/0.9.8b
zlib/1.

2.3

> Host: localhost:33306

> Accept: */*

> Content-Length: 2001890

> Expect: 100-continue

> 

< HTTP/1.1 100 Continue

HTTP/1.1 200 OK

< Date: Wed, 21 Nov 2007 00:03:26 GMT

< Server: Noelios-Restlet-Engine/1.0.5

< Transfer-Encoding: chunked

* Connection #0 to host localhost left intact

* Closing connection #0 

 

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20071121/b1c2feb1/attachment.htm


More information about the httperf mailing list