Networking HowTo
General
Extract network card address
Get the workstation name/ip
Find a port number not in use
Disable DNS caching
Allow user:password in URL
Encode/Decode to/from Base64
Mail (Socket)
Lookup using MX record to validate mail server
Send an email using the SMTP protocol
Check if there is mail waiting
Receive email
Send email with an attachment
Mail (Javamail)
Send email with JavaMail
Send email with authentication (JavaMail)
HTML mail with images (JavaMail)
Debug a Javamail Program
Send email with SMTPS (eg. Google GMail) (Javamail)
Mix plain text and HTML content in a mail
Read an Outlook MSG file (OpenSource packages)
Handle EML file with JavaMail
HTTP
Check if a file was modified on the server
Check if a page exists
Connect through a Proxy
Identify yourself using HTTP Authentification
Talk to a CGI/Servlet
Write/Read cookies using HTTP
Read a GIF or CLASS from an URL save it locally
Resolve a relative URL
File Size from URL
Using HTTPS protocol
Fetch a page from Google
Upload a file
Remove HTML tags from a file to extract only the TEXT
Extract links from an HTML page
Call a web service (generated with BEA ServiceGen)
Socket
Connect through a Proxy
Have timeout on socket connection
Ping a server
Get the Date from server
Use Socket's setSoLinger()
Use Socket's setTcpNoDelay()
Find who is connecting to a ServerSocket
Transfer a file via Socket
Networking HowTo
If you find this article useful, consider making a small donation
to show your support for this Web site and its content.
Written and compiled by Réal Gagnon ©1998-2010
[
home
]