6 Replies Latest reply on Jun 19, 2012 5:55 AM by valeri_dzia

    pdf http request

    valeri_dzia Level 1



      I work on Acrobat Pro


      My goal is to send a request HTTP through my PDF file


      I took a classic example:


      I put javascript code in Programmes/Acrobat/......../javascript/

      ajax = function(cURL) {

          var params =


                  cVerb: "GET",

                  cURL: cURL,



                          response: function(msg, uri, e,h){

                                  var stream = msg;

                                  var string = "";

                                  string = SOAP.stringFromStream( stream );

                                  app.alert( string );








      app.addMenuItem({ cName: "Go PHP", cParent: "File",

          cExec: 'ajax( "http://localhost/myPage.php");',

          cEnable: "event.rc = (event.target != null);",

          nPos: 0



      but when I go to "File/Go PHP" Acrobat says that it is an internal error

      what is problem?