Hello! I end up not using POST but instead the GET method with a cookie to first login into the web server and then subsequently access the pages I needed. The method to get the webserver cookie as well the code sample I used can be found here. Hope it helps!
(http://code.google.com/appengine/forum/java-forum.html?place=topic %2Fgoogle-appengine-java%2F9npf4itjxHc%2Fdiscussion) I would though be interested in a working sample where the POST method is used to access an HTTPS web server. best regards! On Feb 25, 6:46 pm, cyberalgorythms <[email protected]> wrote: > Hi: > > I am trying to use POST HTTP method to populate a login form with details > below and all fields get populated except the password field. I know this > because when I render the html page i am trying to fill in responseBytes the > password field is the only not populated. > > I would appreciate any help on this. > > best regards. > > This is the code I am using: > > .... > > httpRequest.setPayload("lang=en&login=DEyO1vjKVy&password=vjKVT&action=logi > n".getBytes()); > response = urlFetchService.fetch(httpRequest); > final byte[] responseBytes = response.getContent(); > > .... -- 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.
