Posts tagged ‘JEE’
Handeling session cookies with Java
Let’s say you are creating an HTTP request using Java. You are probably doing it with the use of the URL object like this: But sometimes you will also want to use cookies to send along with you request. To do so first we will learn how to read cookies from the request. Getting the [...]
Receive POP3 Emails using Java
Take a look at this example on how to read pop3 emails. But there are 3 parameters you need to prepare: your pop3 server, username and passowrd for that server. Pretty straight forward, not much to explain. All that is missing is the readContent() function which prints the message.getContent(). First you need to understand that [...]
Send a simple SMTP email message with java
The next code will show you the simplest way to send an email in java. The only thing you need is an email address and the smtp host address of your email supplier. This code can only send a simple formatted text, without HTML or attachments. In the future I will show how to do [...]
Download files with Java
Simple java code to download files from the net.