cURL / Mailing Lists / curl-users / Single Mail

curl-users

how to exceute script instaed of downloading it

From: Shoeb Ali <shoeb.ali_at_sasken.com>
Date: Fri, 14 Sep 2012 21:17:09 +0530

Hi,
    when i do "curl http://myserver.com/Test.jsp" curl downloads Test.jsp. What i want is execute the Test.jsp and see the result. Please help me.
//what i see on the console.
function processStateChange() {
        if (req.readyState == 4) { // Complete
                //alert(req.readyState);
                if (req.status == 200) { // OK response
                        //alert(req.status);
                        res="< LICENSERESPONSE > < LICENSE version=2.0.0.0>"+req.responseText+"< /LICENSE >< /LICENSERESPONSE >";
            //alert(req.responseText);
                        document.getElementById('divId').innerHTML = res;

                } else {
                        alert("Problem: " + req.statusText);
                }
        }

   // what i see in the browser and what i exactly want
< LICENSERESPONSE > < LICENSE version=2.0.0.0> *DGD1rz2UdqU1qYR0OZ4nYL08jTaiFmHZyUlwn2WJiZuOA3dQEYHJtOX!Xx8P*YeDXWMSn*1i0HDJDItHSR1xtKPMuZDYcy7Jkc7wjGjCUSADXp2gqiVkSP < /LICENSE >< /LICENSERESPONSE >

Regards,
Shoeb

SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.
Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-14