Hi WebTest community,

first of all, thanks for this great product!

I'm trying to setup a test harness for a server which provides a REST
interface based on the Atom publishing protocol. Unfortunately I can't
get POST and PUT to work properly. Setting the Content-Header doesn't
seem to be supported. The InvokePage class contains the following
snippet which hard-codes the Content-Type header:

  // TODO: is this the correct Content-type for non-SOAP posts?
  headers.put("Content-type", "application/x-www-form-urlencoded");

It would be very convenient to do something like this:

  <invoke url="..." contentFile="foo.png">
    <header name="Content-Type" value="image/png"/>
  </invoke>

Is this functionality planned? I've seen this syntax in a post to this
list (http://lists.canoo.com/pipermail/webtest/2007q3/008771.html).

TALIA for any hints!

P.S.: Sorry if this message is sent twice; I tried to subscribe via gmane and nabble but it didn't seem to work properly, so I'm subscribing directly now.

-- Andreas




--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to