Bug? PostMultipart ignores user & password

Discussion in 'iOS Bugs & Wishlist' started by Adrian998, Mar 21, 2018.

  1. Adrian998

    Adrian998 Member Licensed User

    Dim job As HttpJob
        job.Username = h_user
        job.Password = h_pwd
    server & "/setdata.php?auth=" & authcode,CreateMap("action":"upload"),files)
    Error: ResponseError: unknown error, status code: 401
    the same code works on b4a

    And job.Download2 works with user & password.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Tested it here with a real device and a server using basic authentication. It works fine.
  3. Adrian998

    Adrian998 Member Licensed User

    I also found the error, the parameters must all be in map, if an authentication.


    job.PostMultipart(server & "/setdata.php",CreateMap("auth":authcode,"action":"upload"),files)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice