Announcement

Collapse
No announcement yet.

SetupFactory - authData not being set with HTTP.SubmitSecure

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SetupFactory - authData not being set with HTTP.SubmitSecure

    Hi

    I am trying to send up the AuthData via a HTTPS secure post to an Apach server running PHP.

    However when populate the values in setup factory, when the server receives the post the Auth data is blank.

    I am using this code to populate the post:

    mypost = {firstname = "peter"};
    authData = {UserName="12345",Password=""};
    result = HTTP.SubmitSecure("https://server.com/users", mypost, SUBMITWEB_POST, 20, 443, authData, nil);

    But when we log the PHP _SERVER variables we get
    PHP_AUTH_USER = []

    Out apache server is using mod not cgi, so as far as I know it should all be working.

    Has anyone successfully passed authdata to a server using HTTP.SubmitSecure call ?

    Thanks
    Peter

  • #2
    I just tested this with Setup Factory 9.5, and it works flawlessly. If you aren't getting any data for $_SERVER['PHP_AUTH_USER'], then most likely your page isn't password protected at all. You need to enable password protection / plain authentication for the folder where your script is located.

    Ulrich

    Comment


    • #3
      Hmm ok, I am using 9.0.3.0
      The page is protected, it works when using something other than setup factory.

      Maybe time for an upgrade to 9.5...

      Comment

      Working...
      X