Try to fix Squizmap #3991: failure to upload files when the root URL of an install is not at the root of the domain.
Try to use the current URL instead of a base URL to avoid a 404 error.