Networking Section Index | Page 4
In Sun site and a few other websites, I find two types of downloads, FTP Download & HTTP Download. What is the difference and how to implement it? Also how to make a download resume supported for broken net connections?
There are two different server types FTP (File Transfer Protocol) and HTTP (Hyper Text Transfer Protocol). FTP is able to service files located on the server using a protocol optimized for file tr...more
When I try to send over socket it gets converted to on the client side. I tried sending 10 also, but that also gets converted to . I have to send " " in the start of a TL1 response. I...more
Use the Java Communications API. http://java.sun.com/products/javacomm/.
The small HTTP server written in Java is at http://www.acme.com/java/software/Acme.Serve.Serve.html . It's very simple and you can use it as a starting point for a more sophisticated web server ...more
My computer is mapped to more than one IP adress. From my program, how can I retrieve all the IP addresses the machine is mapped to?
You can use something like: InetAddress ia=InetAddress.getLocalHost(); InetAddress a=ia.getAllByName(ia.getHostName());
In my JSP file i am trying to use getRemoteHost() method to retrieve the computer name. It works in all the systems. but in one machine instead of displaying that computer name it is displaying the IP address of that computer. I dont know why it is displaying like that. do i need to change any settings in that particular machine ?
In my JSP file i am trying to use getRemoteHost() method to retrieve the computer name. It works in all the systems. but in one machine instead of displaying that computer name it is displaying t...more
I want to create auto-update application that is updateable over the network. Is there some library or framework for this purpose?
Check out PowerUpdate from ZeroG (http://www.powerupdate.com). The base level of features is free.
[Short answer: you can't stop the thread, but you can close the socket, which causes accept to return. -Alex] Hope that I've understood you properly. So I assume, that you've got something like: ...more
[Note: the following is not a full-featured HTTP proxy. Other true HTTP proxies, like Squid, accept the CONNECT request, and can interpret the HTTP headers intelligently. This is a simple tunnel...more
If a GET request method contains any additional headers like If-Modified-Since, If-Unmodified-Since, If-Match, If-None-Match or If-Range, then the request is known as a "conditional" GET. In this ...more
Where can I find example code for sending an SMS message from a Java application to a cellular phone?
Kvanttisms is a Java class library for sending and receiving SMS messages via a GSM phone. See http://sourceforge.net/projects/kvanttisms/more
There are several factors that have may have affect on the transfer speed. Some general and important factors are: -- MTU (Message Tranfer Unit) size -- TTL (Time To Live) factor-- Timeout factor ...more
See http://www.ics.uci.edu/pub/ietf/http/hypermail/1997q3/0181.html You have to supply an Proxy-Authenticate HTTP header to your request containing user:pass in base64 encoding. more
I have around 5000 URL links. I want to check the HTTP status of each link. For this I am opening HttpURLConnection and then calling getResponseCode() method to get the response code. But for some ...more
I have around 10000 links in my database. Now I want to check it whether some of them are dead or not. How can I test whether an URL is live or dead?
Open up an url connection and check the header of the response. Header will contain codes that mean different things such as 500 - Internal Server Error, 404 - Not Found. Code 200 means ok, so you...more