For example, in rails, I want to vist the url "http://127.0.0.1:8080/solr/update" with the http method "post", and submit a xml data, how can I achieve that?
A:
If you are looking to do this via a web service than you would need to make sure your controller can respond to a request for updating with xml (by making sure the update mehtod has a format clause with xml specified) and then in your code just make a request to the url and set the appropriate http headers. That's really all you need.
ennuikiller
2009-09-29 11:18:10