change addRequestProperty to setRequestProperty.
Set System property for user-agent to empty string.