2 Replies Latest reply on Jun 23, 2011 3:14 PM by Noah Rodenbeek

    Can I make an HTTPConnection object from PS?

    Noah Rodenbeek Level 1

      I have a script running in Photoshop.  At the end of the script I want to make a POST of different variable and actions that have occurred.  What I have seems to be legit, but it will not run.  It keeps telling me that the HTTP Connection object needs a constructor, but I don't know what that means.  Here's my code so far:


      var http = new HttpConnection("http://localhost/post.pjp");

      http.request = "variable = testing";

      http.method = "POST";



      Then the post.php scoops up the variable declared in the request and should be displaying it.


      Thanks for your help!