Hello Pablo, On Wednesday, May 22, 2013 8:48:03 PM UTC-5, Pablo Brunetti wrote: > > good night I have a problem to use the java.net class. > I'm trying to use the POST method to send an argument and have an > answer. It's happening the following error: > Exception in thread "main" java.lang.RuntimeException: Failed: HTTP error > code: 500 > Could anyone help me? >
Your code is fine. The error is not coming from Java or the java.net class. The error is coming from the site you're trying to query. I took the URL and parameters from your source code and tried them myself. You can see the results here: http://www.hurl.it/hurls/61a66228eec8ee5cef53a0dfbad584217e90275c/102e05f1bd47fa7dec0e45936e20d97f446c6869 . In short: the site itself is down. It's giving a 500 error, which means that something is wrong with the hosting server. You'll have to contact the site owner and ask him to fix it, or query a different web service. ----------------- -Vinny P Technology & Media Advisor Chicago, IL My Go side project: http://invalidmail.com/ -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.