fix port in POST request urls