how to do AJAX http-post (URLEncoded) from jython?
Fernando Cassia <[email protected]> Tue, 22 Mar 2016 13:09:54 -0300
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <CACGw4H7njGW62U=e7g88qJdjDDygpq-q58WfioWcT=y71guhGA@mail.gmail.com> |
Hi there, I worked on a script to scrap some information from a web site. Before, I just used a shell script that called wget with the right parameters to do a session log-in, retrieve the session cookies, then afterwards perform the required calls to several .php scripts to retrieve the info I wanted to a file on disk, which I ten parsed. BUT the server changed its code, and while the URLs for the PHP scripts remain the same, what was passed before as HTTP-GET requests is now handled via POST URLencoded AJAX requests, and the server is refusing http get requests so my scripts work no more. Q: what would be the easiest way to redo my scripts in Jython, particularly, is there any built-in code to deal with ajax POST requests, and urlencode? or any third party Java library that is known to work well from Jython? Thanks in advance. FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ Jython-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jython-users