Java Reference
In-Depth Information
Finally, a form can also be sent as a multipart POST . A multipart POST is very useful
when you need to send a file back to the web server. Multipart forms are used by many web-
sites when a file is to be uploaded. Though this is by far the least used of the form response
types, you will need to make use of it if your bot needs to upload a file.
So far, all of the bots presented have been stateless; that is, the bot can simply jump to the
page and retrieve the data. Very often a web server will require you to create a session before
you can access any data. Creating a session is usually as easy as logging onto the system.
Chapter 8 will show you how to login to websites and handle sessions.
Search WWH ::




Custom Search