<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=314102113-19072005>(repost from users 
list from 7/14/2005) Forgive the repost, maybe users list was not the 
appropriate place to ask as no response, so asking 
here:</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=314102113-19072005> </SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>I'm trying to post data to REST/1.0/ticket/edit (or 
/REST/1.0/edit as I think they have the same functionality) and so far have 
not had any success (I'm using jakarta-commons HTTPCLIENT, but that should 
be <SPAN class=314102113-19072005> i</SPAN>rrelevant for the 
request).  <SPAN 
class=314102113-19072005> </SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=314102113-19072005></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=314102113-19072005>So far, 
I'm assuming the cookie-auth is the only way to authenticate against REST 
and have gotten that part to work.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=314102113-19072005></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=314102113-19072005>Reading data I've 
tested /REST/1.0/ticket/1 and similar calls without form-data, assuming that is 
the correct prodedure.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN 
class=314102113-19072005></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=314102113-19072005>However, I can not get a successful ticket creation or 
update to happen. I'm assuming after cookie-auth that you are to POST 
</SPAN>a multi-part form<SPAN class=314102113-19072005>  data to 
/REST/1.0/ticket/edit (or /REST/1.0/edit)</SPAN>, and that if you want to create 
a new ticket you make the key=value something like id=ticket/new, but 
beyond that<SPAN class=314102113-19072005>  I keep 
getting:</SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=314102113-19072005></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN><SPAN 
class=367003719-14072005><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>======<SPAN 
class=314102113-19072005> </SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT 
color=#0000ff><FONT face=Arial size=2><SPAN 
class=314102113-19072005> </SPAN></FONT></FONT></FONT></SPAN><SPAN 
class=367003719-14072005><FONT face=Arial><FONT color=#0000ff size=2>RT/3.4.1 
400 Bad Request<SPAN 
class=314102113-19072005> </SPAN></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><FONT><FONT><SPAN 
class=314102113-19072005> </SPAN>No objects specified.<SPAN 
class=314102113-19072005> </SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><FONT><FONT><SPAN 
class=314102113-19072005> </SPAN></FONT></FONT><SPAN 
class=367003719-14072005>======<SPAN 
class=314102113-19072005> </SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=367003719-14072005><SPAN 
class=314102113-19072005> </SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=367003719-14072005><SPAN 
class=314102113-19072005>Is there specific key/value pair that I'm missing that 
needs to be there, or maybe I'm posting to the wrong location? I tried to follow 
REST/1.0/dhandler file with the key/value pairs detailed there, but I guess my 
perl is a little too rusty 
;-)</SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=367003719-14072005><SPAN 
class=314102113-19072005></SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=367003719-14072005><SPAN 
class=314102113-19072005>Thanks, any help would be appreciated (elaboratating 
with other gotcha's would help 
too!)</SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=367003719-14072005><SPAN 
class=314102113-19072005></SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=367003719-14072005><FONT><FONT><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=367003719-14072005><SPAN 
class=314102113-19072005>-D</SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></DIV></SPAN></BODY></HTML>