Skip to content

Tag: httprequest

Initiate download from certain byte

I would like to implement a distributed download manager on android that initiates downloads at certain byte lengths. So this way portions of files can be downloaded instead of only from the beginning to the end of the http request. Nothing innovative about it, I just don’t know how to do it. (It’s not bitorrent either) In java http apache

Add HEADER in HTTP Request in Java

I’m using this following code to send simple HTTP Request : However, as you can see, I don’t send a custom HEADER. What should I add to send a custom HEADER ? Answer When you write The rnrn bit is sending a line-feed/carriage-return to end the line and then another one to indicate that there are no more headers. This