I want to download objects (css , jpeg, html ,png ) using sockets in java without using httpurlconnection . How can i do this with the help of simple socket library ?
In that case, start by reading the HTTP specifications listed at https://coderanch.com/how-to/java/SpecificationUrls#httpRfc - that why you know what to send, and what to expect back in response. If you want to implement HTTP yourself, you don't need any library - the java.net package comes with all the classes you need (like java.net.Socket).