HTTPClient: small fixes