Give this a shot:
def string_post(req: dispatch.Request, string_body: String) = req.next {
val m = new org.apache.http.client.methods.HttpPost
m setEntity new org.apache.http.entity.StringEntity(string_body, Request.factoryCharset)
Request.mimic(m)_
}
http(string_post(req, xml) >>> System.out)
On Jan 25, 2010, at 7:47 PM, Strom [via Databinder] wrote:
> Unfortunately, no. When I send via PUT, Solr whines with error 400, Unsupported Method: PUT.
>
> Dang. What's the work around?
>
> View message @
http://n2.nabble.com/How-to-POST-XML-tp4457822p4457957.html
> To start a new topic under Databinder, email
[hidden email]
> To unsubscribe from Databinder, click here.
>