Fix post requests path - compatibility with HTTPS