Re: Using restclient for streaming multipart uploads


Archiloque <code@...>
 


Le 2 nov. 2011 à 22:50, Anthony Rowlands a écrit :

Logging is showing this:

RestClient.post "http://localhost:8080/LightStanza/lsz-upload?projectKey=20", 30929 byte(s) length, "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"30929", "Content-Type"=>"multipart/form-data; boundary=89514", "Cookie"=>"JSESSIONID=2DC341E5B9A96F8AE9DDB94267BA47F4"

Does this look okay to you? 30kb sounds about right for the data I'm testing with. It could be server-side problem at this point, but without seeing the actual stream it's hard to tell.

Also, do you see a problem with generating a random number for the file boundary? Seems like it's possible that this exact number would show up in the file content, which goes against the RFC.

seems difficult as you seem to have tried several time, you could perhaps use a simple logging proxy en your machine to see what exactly happen ?

A.

Join main@rest-client.groups.io to automatically receive all group messages.