0 Replies Latest reply on Aug 29, 2008 6:19 AM by adinana

    Server Authentiacation in action script

    adinana
      I get the following Http Errror 407 - googled this and found that its a proxy- server error.
      I access the internet through a proxy server and have to provide user id and passwrd

      -> is there any way to provide the userid and passwrd through action script.

      Heres the sample code I ran on my machine

      this.createTextField("params_txt", 10, 10, 10, 100, 21);
      params_txt.autoSize = "left";

      var my_lv:LoadVars = new LoadVars();
      my_lv.onHTTPStatus = function(httpStatus:Number) {
      trace("HTTP Error No : " + httpStatus); // Got Error No 407 Here.
      };
      my_lv.onLoad = function(success:Boolean) {
      if (success) {
      trace("text file successfully loaded");
      params_txt.text = my_lv.dayNames;
      } else {
      params_txt.text = "unable to load text file";
      }
      };
      my_lv.load(" http://wordpress.org/extend/plugins/about/readme.txt");