Hello Nitya,

I think it would be helpful to know the content of the HTTP request sent by both CURL and Restlet client. You can use netcat as a listening program (netcat -l -p <your port number>). It will display the entire content of the request.
Could you try this and keep us informed?

Best regards,
Thierry Boileau


Hi,

This is my first posting to this list -- so my apologies if I should be targeting this elsewhere (do direct me in that case).

I am currently running the stable 1.0 release (haven't yet migrated to 1.1)

I just started using Restlets recently to build a simple RESTful service. One component of this service needs to POST data to a Rails based application. I am encountering a strange issue where the POST from my Restlets client fails -- with the Rails app apparently not seeing any data in the POST entity body it received.

However, posting the same data from using CURL (commandline) or using an HttpURLConnection-based POST request (Java) works fine.

Some web-trawling revealed an earlier post on this topic (http://osdir.com/ml/java.restlet/2007-05/msg00059.html) but that solution did not seem to fix the problem for me.

Any insights or experiences in this context would be very helpful!

Cheers
Nitya

Reply via email to