Menu

#2 Bug using "POST" as UPDATE Transaction Method

open
nobody
5
2009-06-25
2009-06-25
Mike G
No

No content being POSTed when using RetsTransactionHandler.setMethod("POST");

Example:
.....
String dmqlUpdate = "Resource=Property&ClassName=3&Type=Add&Delimiter=|&Record=123=FHNST|456=OPTIO|789=2009";

RetsTransactionHandler rth = auth.getUpdateHandler();
rth.setMethod("POST");
rth.executeTransaction(dmqlUpdate);
RetsResponse resp = rth.executeTransaction(dmqlUpdate);
StringBuffer buf = resp.getResponseContent();
.....

Upon examining the raw HTTP POST request sent from JRETSC, there is no POSTed content (which should be the dmqlUpdate string) and there's no Content-length:

POST /Update.asmx/Update HTTP/1.1
Host: <removed for privacy>
Connection: keep-alive
User-Agent: MYAGENT/1.0
RETS-Version: RETS/1.8
Cookie: <removed for privacy>
Method: POST
Authorization: <removed or privacy>
RETS-UA-Authorization: Digest <removed for privacy>
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

Discussion


Log in to post a comment.