Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
RequestHeaders callback method
Called when wodWebServer receives request headers from the user.
Syntax
- Basic
object.RequestHeaders (Owner, User)
The RequestHeaders(object,Owner,User) syntax has these parts:
The RequestHeaders(object,Owner,User) syntax has these parts:
object | An expression evaluating to an object of type IwodWebNotify |
Owner | An expression evaluating to an object of type wodWebServer |
User | WebUser object. Reference to user that called CGI script. |
Remarks
NOTE: This method is called only if you implemented IwodWebNotify interface in your application, and wodWeb1.Notification property has received reference to instance of your implementation.RequestHeaders is called after connected user sends request headers, but before any body content is sent - if any will be sent at all. This place is convenient for determining if user is about to upload files so you can prepare yourself and setup Request.Filename property to some exact location (otherwise, wodWebServer will save received body to temporary location).
If you plan to support PUT methods of HTTP protocol, you might want to use this notification method to point directly to location where file will be saved. But this is not it's only purpose. You have full access to Request.Headers at this point - and it tells you quite a bit about body content that is about to arrive.
If you're expecting files to be uploaded, you can set Uploads.AutoParse property in this notification method.