• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. piwi

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 0

    piwi

    @piwi

    0
    Reputation
    498
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    piwi Unfollow Follow

    Latest posts made by piwi

    • RE: How to set basic authentication parameter (user, pass) in HTTP retriever module?

      That great!
      Just a quickie. Is there any way how I can customize Mango Automation myself? Or it is not intended to do?
      Cheers,
      Janus

      posted in How-To
      P
      piwi
    • RE: How to set basic authentication parameter (user, pass) in HTTP retriever module?

      Hi Joel,

      I am currently playing a bit with Mango Automation. It is a nice tool.

      How long would it take to update Mango with that feature?
      I have already used basic authentication in Java for retrieving XML files from my embedded web server.

      here a code snippet:

      
      private String encodeHttpAuthorization(String user, String pass)
        throws Exception
        {
            String urlEncStr = "";
            if(user.length() != 0 || pass.length() != 0)
            {
                
                String userpass = user + ":" + pass;
      //          urlEncStr = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes());
                urlEncStr = "Basic " + new sun.misc.BASE64Encoder().encode (userpass.getBytes());
              //String basicAuth = "Basic " + new String(new Base64().encode(userpass.getBytes()));
      
            }
            return urlEncStr;
        }
      ...
      ...
      try
          {
            // create the HttpURLConnection
            url = new URL(desiredUrl);
            connection = (HttpURLConnection) url.openConnection();
            
            connection.setRequestMethod("POST");
            connection.setRequestProperty("Authorization", encodeHttpAuthorization("admin", "00000"));
            
            connection.setDoInput(true);
      ...
      ...
      
      

      Regards
      Janus

      posted in How-To
      P
      piwi
    • How to set basic authentication parameter (user, pass) in HTTP retriever module?

      Hi,

      how is it possible to set user, password combination in HTTP retriever module for basic HTTP authentication ?
      I have an embedded device with ethernet connection. I am using xml files on it with different tags (device description, MAC, address, analog/digital data...) I want to retrieve with HTTP Retriever module.
      However the XML files may just be accessed with authentication.

      Thanks in advance
      Janus

      posted in How-To
      P
      piwi
    • RE: How to set basic authentication parameter (user, pass) in HTTP retriever module?

      Hi,

      how is it possible to set user, password combination in HTTP retriever module for basic HTTP authentication ?
      I have an embedded device with ethernet connection. I am using xml files on it with different tags (device description, MAC, address, analog/digital data...) I want to retrieve with HTTP Retriever module.
      However the XML files may just be accessed with authentication.

      Thanks in advance
      Janus

      posted in How-To
      P
      piwi