Xymon Mailing List Archive search

Content-Type header for HTTP POST (was: Xymon 4.3.0: Beta version available on Sourceforge)

list Frank Gruellich
Tue, 03 Mar 2009 17:18:53 +0100
Message-Id: <user-68d23fb92a93@xymon.invalid>

Hi,

Henrik Størner wrote:
* Make the content-type setting in HTTP POST tests configurable.
I tried to make that feature working today, but I can't figure out how
to use it.  That's what I tried to configure after reading

               If  your  form-data  requires  a different content-type, you can
               specify it by beginning the form-data with  (content-type=TYPE),
               e.g.  "(content-type=text/xml)"  followed by the POST data.

in bb-hosts:

10.35.12.31	jupiter	# post;http://10.35.12.31/some/application;(content-type=text/xml)<soapenv><lots_of_stuff></lots_of_stuff><soapenv>

I also tried without parentheses to no avail.  tcpdumping around shows
that (content-type=text/xml) is quoted directly into the POST and the
default application/x-www-form-urlencoded is still there.  What am I
doing wrong?

Kind regards,
-- 
Navteq (DE) GmbH
Frank Gruellich
Map24 Systems and Networks

Duesseldorfer Strasse 40a
65760 Eschborn
Germany

Phone:      +XX XXXX XXXXX-XXX
Fax:        +XX XXXX XXXXX-XXX

USt-ID-No.: DE 197947163
Managing Directors: Thomas Golob, Alexander Wiegand,
Hans Pieter Gieszen, Martin Robert Stockman