--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/4tEYBCPzzCcJ.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/caelum-vraptor?hl=en.
Eu acho que ja tive este problema uma vez com ajax e PUT, foi no Tomcat - na pressa mudei pra POST e deixei de lado. Nao sabia que o servidores precisavam ser configurados para suportar form parameters.
Quaid outros metodos http tem esse problema, Lucas?
ServletFileUpload.isMultipartContent(request);
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/rp_EtMLg38oJ.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/PIBMibPaXzsJ.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/XkFaoBqUPbwJ.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/Kdinfn8CkfwJ.
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.methods.PostMethod;
HttpClient client = new HttpClient( );
// Create POST method
String weblintURL = "http://ats.nist.gov/cgi-bin/cgi.tcl/echo.cgi";
PostMethod method = new PostMethod( weblintURL );
File file = new File( "project.xml" );
method.setRequestBody( new FileInputStream( file ) );
method.setRequestContentLength( (int)file.length( ) );
// Execute and print response
client.executeMethod( method );
String response = method.getResponseBodyAsString( );
System.out.println( response );
method.releaseConnection( );Ao invés de usar a classe PostMethod use PutMethod Olá Lucas, trabalho junto com o Ricardo e também estou tentando resolver este problema que estão tratando..
A minha dúvida em relação a sua ultima postagem..
Como o Ricardo falou antes neste fórum estamos usando um Client em Python, mas vc conseguiria fazer um pequeno exemplo em Java de como mandaríamos o arquivo no Body do Put??
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/Nbyf4ozfVRoJ.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/NVhlUOBdTWEJ.
To view this discussion on the web visit https://groups.google.com/d/msg/caelum-vraptor/-/n2abe9K22YMJ.