How to send an HTTP header in java -
Is it possible to send HTTP headers through URL connections in Java? I had to work using this socket, but ran into problems with the firewall, which is not a problem in URLConnection. Looking at the API, I get the impression that the output methods in the URLConnection are only for filling out the form, or can they be used to send their own HTTP headers?
Yes, you have the desired method
Comments
Post a Comment