 url = $('#url').val();
		var username = $('#username').val();
		var password = $('#password').val();
        var auth = $('#auth').val();
		var accept = $('#accept').val();

		while(url.indexOf('=[')>=0) {
			url = url.replace(/\[.*?\]/, function(a, b) {
				var val = a.substr(1, a.length - 2);
				return encodeURIComponent(val);
			});
		}

		$('#url').val(url);


		var json = null;

		try {
			if($('#json').val().length > 0)json = JSON.stringify(JSON.parse($('#json').val()));
			$.ajax({ // our base conn