[Rt-devel] RT:Atom POST problem
Patrick Rousseau-Mathieu
prouss at cae.com
Thu Jan 20 12:07:33 EST 2005
Hi,
I've got a problem trying to create a ticket or a user with the POST
statement of HTTP.
Rt always telling me that a certain properties is not set.
I've try this with to get info on Users with the GET statement and its
working pretty well and giving me all the user of RT:
GET /rt/Atom/0.3/RT-Users HTTP/1.1 \r\n
Host: 127.0.0.1 \r\n
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 \r\n
Accept-Language: en-us,en;q=0.5 \r\n
Accept-Encoding: gzip,deflate \r\n
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 \r\n
Keep-Alive: 300 \r\n
Connection: keep-alive \r\n
Cookie: RT_SID_rttest.cae.ca.80=9b2c09c36a9b0312a7cc9b9185c30fda \r\n
\r\n
(NOTE: \r\n are the "enter" that i put at the end of each line, in php")
But with the POST one with the POST /rt/Atom/0.3/Users HTTP/1.1
it says: "Must specify 'Name' attribute". It look like rt dont parse the
xml:
POST /rt/Atom/0.3/Users HTTP/1.1 \r\n
Host: 127.0.0.1 \r\n
Keep-Alive: 300 \r\n
Connection: keep-alive \r\n
Cookie: RT_SID_rttest.cae.ca.80=9b2c09c36a9b0312a7cc9b9185c30fda \r\n
Content-Type: text/xml,application/x.atom+xml,*/* \r\n
r\n
<entry><content type='application/x.atom+xml'
mode='xml'><body><Name>Patrick</Name><EmailAddress>prouss at cae.com</EmailAddr
ess></body></content></entry>
If someone can give me an exemple of a POST that work or something to help
it will be verry appreciated.
Thanks.
Patrick R. M.
More information about the Rt-devel
mailing list