Hello! Regarding this issue I have ended up using the GET method with a cookie to pass the password field instead of the POST method and make subsequent accesses to the pages I needed. Follow the link below to get the sample code on how to get the cookie sent by web server.
http://http://code.google.com/appengine/forum/java-forum.html?place=topic/google-appengine-java/9npf4itjxHc/discussion I would be though interested in a working sample code on how to use the POST method and the setPayload method. Thank you! Best coding! 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=DEMO2vjKVT&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.
