                   console.log(err);
                    }
                }
            }

            var st_headers = {};

            var basicAuthUsername = $('#basic_auth_username').val();
            var basicAuthPassword = $('#basic_auth_password').val();
            var apiKey = $('#apikey_key').val();
            var apiKeyValue = $('#apikey_value').val();

            if(apiKey.length > 0 && apiKeyValue.length > 0) {
                st_headers[apiKey] = apiKeyValue;
            }

            if 