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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -