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

    pdf http request

    valeri_dzia

      hello

       

      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,

                  oHandler:

                  {

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

                                  var stream = msg;

                                  var string = "";

                                  string = SOAP.stringFromStream( stream );

                                  app.alert( string );

                          }

                  }

          };

       

          Net.HTTP.request(params);

      }

       

      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?

       

      Thanks