java - Parse request line of http header -


is there inbuilt in java.net parse request line on http request?

for example:

connect google.com:443 http/1.1 

in case want parse host , port.

you can use gethost() or getport() or getdefaultport() methods of java.net.url class.

for further information can check here


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -