<br><br><div class="gmail_quote">On Tue, May 12, 2009 at 9:15 AM, Matteo <span dir="ltr"><<a href="mailto:tadwelessar@gmail.com">tadwelessar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 11 Mag, 23:06, Shawn Milochik <Sh...@Milochik.com> wrote:<br>
> How is the form "written in JavaScript"? Is it dynamically generated?<br>
><br>
> In any case, can you just send a POST request if you know the values required?<br>
<br>
</div>The problem is indeed that the form is dynamically generated.<br>
That's the .js file:<br>
<br>
if (navigator.appVersion.indexOf("MSIE")!=-1)<br>
document.write("<script type='text/javascript' id='chillicontroller'></<br>
script>");<br>
<br>
if (!window.queryObj) {<br>
    window.queryObj = new Object();<br>
    window.location.search.replace(new RegExp("([^?=&]+)(=([^&]<br>
*))?","g"), function($0,$1,$2,$3) { queryObj[$1] = $3; });<br>
    if (queryObj['uamip'] == null && queryObj['uamport'] == null)<br>
{queryObj['uamip']='10.192.0.1';queryObj['uamport']='3990';}<br>
}<br>
<br>
if (queryObj['uamip'] != null && queryObj['uamport'] != null) {<br>
    var script = document.getElementById('chillicontroller');<br>
    if (script == null) {<br>
  //    document.write('manutenzione');<br>
        script = document.createElement('script');<br>
        <a href="http://script.id" target="_blank">script.id</a> = 'chillicontroller';<br>
        script.type = 'text/javascript';<br>
        script.src = 'http://'+queryObj['uamip']+':3990/www/<br>
chillijs.chi';<br>
<br>
        var head = document.getElementsByTagName("head")[0];<br>
        if (head == null) head = document.body;<br>
        head.appendChild(script);<br>
   }<br>
   script=document.getElementById('chillicontroller');<br>
   if(script==null)document.write('manutenzione');<br>
    script.src = 'http://'+queryObj['uamip']+':3990/www/chillijs.chi';<br>
<br>
} else {<br>
//document.write('manutenzione');<br>
    var noLocation = document.getElementById("noLocation");<br>
    if (noLocation != null && noLocation.style) {<br>
       noLocation.style.display = 'inline';<br>
<div><div></div><div class="h5">    }<br>
}<br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br>Use firebug or something similar (HTTPFox) to take a look at what you should be sending as a post, and then just send that it your python script. Worst case scenario is that you need to reverse-engineer a javascript-generated session-id-type-thing, but that's pretty rare. Most likely, you don't even need to grab the page.<br>
<br>