Posts tagged ‘JEE’

 

Handeling session cookies with Java

Read full article  | No Comments

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 [...]

Read More

Receive POP3 Emails using Java

Read full article  | 1 Comment

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 [...]

Read More

Send a simple SMTP email message with java

Read full article  | No Comments

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 [...]

Read More

Download files with Java

Read full article  | No Comments

Simple java code to download files from the net.

Read More