[appengine-java] Re: setPayload does not pass password field
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 cyberalgoryt...@gmail.com 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=enlogin=DEyO1vjKVypassword=vjKVTaction=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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: setPayload does not pass password field
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 cyberalgoryt...@gmail.com 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=enlogin=DEMO2vjKVTpassword=vjKVTaction=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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.