How to make HTTPClient use custom User-Agent header?
The following code submits empty user-agent. What am I missing?
import java.io.IOException; imp
The line
request.setHeader("User-Agent", "MySuperUserAgent");
is missing. Add it and enjoy.