When I try running curl like this: curl -i -H "Accept: application/xml" -X GET "https://..../auth?a=b&c=d"
everything is fine. but when I try this: curl -i -H "Accept: application/xml" -X GET "https://..../auth" -d "a=b&c=d" I get the error message documented below. I assume this is related to this bug, http://code.google.com/p/googleappengine/issues/detail?id=601, but I don't understand why I can't pass parameters in a GET, especially when everything works fine locally. Even if the RFCs forbid this (which I don't think they do) it is very common, and works on other systems. For example, what if my ReST API is using an API Key? Is there some workaround for this other than forcing users (and my test suite) into URL-style parameters? Thanks. bjorn -------------------- HTTP/1.0 400 Bad Request Content-Type: text/html; charset=UTF-8 Content-Length: 1350 Date: Thu, 17 Feb 2011 00:34:51 GMT Server: GFE/2.0 <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>400 Bad Request</title> <style><!-- body {font-family: arial,sans-serif} div.nav {margin-top: 1ex} div.nav A {font-size: 10pt; font-family: arial,sans-serif} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} div.nav A,span.big {font-size: 12pt; color: #0000cc} div.nav A {font-size: 10pt; color: black} A.l:link {color: #6f6f6f} A.u:link {color: green} //--></style> <script><!-- var rc=400; //--> </script> </head> <body text=#000000 bgcolor=#ffffff> <table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap> <b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font> </b> <td> </td></tr> <tr><td bgcolor="#3366cc"><font face=arial,sans-serif color="#ffffff"><b>Error</b></td></tr> <tr><td> </td></tr></table> <blockquote> <H1>Bad Request</H1> Your client has issued a malformed or illegal request. <p> </blockquote> <table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor="#3366cc"><img alt="" width=1 height=4></td></tr></table> </body></html> -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
