Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
i have never experienced this yet. do you have some sample code to give me an idea? thank youthis is the exact error message sent by the response header X-Tapestry-ErrorMessage:java.util.zip.ZipException: invalid literal/length code Website/Java Games: http://www.chitgoks.com Java Casino Games:

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 20:52:02 -0300, chitgoks escreveu: true. i use http analyze for that. it does post it. i do get a tapestry error saying zip something invalid length code Since Tapestry 5.1.0.x (I don't remeber the exact version) can be configured to use GZip to compress requests. Maybe

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
true. i use http analyze for that. it does post it. i do get a tapestry error saying zip something invalid length code Website/Java Games: http://www.chitgoks.com Java Casino Games: http://chitgoks.tripod.com Photo Gallery: http://gallery.chitgoks.com My Blogs: http://tech.chitgoks.com http://wuh

Re: logging in using java in a tapestry login form

2009-07-20 Thread Craig St. Jean
Try using an HTTP debugger such as Fiddler2 and logging in through your browser. The tool will show you all the fields submitted, how it submitted them (i.e. POST vs GET), etc. After that, try to reproduce what your browser did in your code. Tools like that have been a lifesaver for me when tryi

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
yeah i extracted the t:formdata from the page. Website/Java Games: http://www.chitgoks.com Java Casino Games: http://chitgoks.tripod.com Photo Gallery: http://gallery.chitgoks.com My Blogs: http://tech.chitgoks.com http://wuhtevah.chitgoks.com http://disneyusa.blogspot.com On Mon, Jul 20, 2009 a

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 10:58:14 -0300, chitgoks escreveu: hi thiago Hi! and i included the t:formdata parameter when submitting to the form. i do quite a lot of login simulations in sites and i have no problems when the form post url is shown. though tapestry's different since it doesnt show

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
hi thiago yes, my code is post. i set httpcon.setDoOutput(true); and i included the t:formdata parameter when submitting to the form. i do quite a lot of login simulations in sites and i have no problems when the form post url is shown. though tapestry's different since it doesnt show the form po

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 10:29:33 -0300, chitgoks escreveu: thanks. You're welcome! I overlooked something: Tapestry always submits forms using POST and you're using GET, so Tapestry may be ignoring the parameters. And Tapestry always adds a hidden field, t:formdata. When it's not found, Tape

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
thanks. that's ok. then i guess tapestry's framework hides it from these cases. i just dont like apache's httpclient. i used that before but i did not like it. java's own classes were and still are sufficient for my needs. cant show the code as it's a production site. head developer for sure dont

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 10:22:42 -0300, chitgoks escreveu: hi, i did set it to true instead of false. and the stream's content is still the login page. What is shown after a form submit is defined by the page class and its event handler methods. Without its code, we cannot help here. im acce

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
hi, i did set it to true instead of false. and the stream's content is still the login page. im accessing some things in one of our sites that uses tapestry using java's httpurlconnection, no other 3rd party library. httpclient you mean apache's right? then using the GetMethod and PostMethod? im t

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 07:22:11 -0300, chitgoks escreveu: hi Hi! httpcon.setInstanceFollowRedirects(false); Try setting it to true instread of false. Tapestry uses redirect-after-post. Anyway, why are you doing this? What are you trying to accomplish? Why don't you use HttpClient? Using

logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
hi i checked on tapestry and tried to use httpurlconnection to log in to the tapestry login form programmatically but it gives me errors. what is the form post url? im thinking tapestry's framework prevents it logging in via httpurlconnection. please correct me if i am wrong. and if there is dir