Regular Contributor.
Regular Contributor.

connecting with api.postcode.nl

Trying to connect with api.postcode.nl using Basic Authorization does not work. I keep getting this result:

"exception":"Authorization not found.","exceptionId":"PostcodeNl_Controller_Plugin_HttpBasicAuthentication_NoAuthorizationHeaderFoundException"

I use "HttpGet" with extra headers.     

          05 filler                                              PIC X(13) value 'Authorization'.
          05 filler                                              PIC X value x"00".
          05 filler                                              PIC X(05) value 'Basic'.
          05 filler                                              PIC X value x"00".      
          05 LNK-USERNAME                    PIC X(100).
          05 filler                                             PIC X value x"00".         
          05 LNK-PASSWORD                   PIC X(100).
          05 FILLER                                        PIC X VALUE X"00".
          05 FILLER                                        PIC X VALUE X"00".          

I tried all kinds of values in de header but I keep getting no result.

In Postman it works fine so my username and password are correct.


The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.