8.0

Table Of Contents
Using HTTP GET and POST
requests
This section describes how you can use HTML to interact with QuarkXPress Server. QuarkXPress
Server supports both the GET and the POST methods of HTML.
When you use the GET method, the browser encodes form data into a URL. When you use the POST
method, form data is passed within a message body. Use the GET method when the form processing is
idempotent, and in such cases only. As a simplification, we can say that GET is for getting (retrieving)
data whereas POST
can involve storing or updating data, ordering a product, or sending an e-mail.
Working with QuarkXPress Server using an
HTTP GET request
To view the HTML, click here
.
Use this HTML to specify a server and its port where you want to send the request. You can specify the
name of a project, the output type, and scaling. You can also specify the name of a text box and a picture
box, and the paths of the text files and picture files to flow into them. You must specify the path of the
text and picture file on the server system. You can also use this HTML to specify the page and layout
number of the project.
The form section of the HTML begins with the following line of code:
<form id = form1 method="get" enctype="application/x-www-form-urlencoded">
For both METHOD="GET" and
METHOD="POST", the processing of a user's submit request (such as, click Submit) in a browser
begins with the construction of the form data set, which is then encoded in a manner that depends on the
ENCTYPE attribute. That attribute has two possible values: multipart/form-data is for POST submissions
only, while application/x-www-form-urlencoded (the default) can be used both for POST and for GET
methods.
Next, you must input the server IP and port and the project name. The following lines of code create text
fields for them:
<TABLE cellSpacing=1 cellPadding=1 border=1 id=TABLE1 >
<TBODY>
<TR>
<TD>
<INPUT id=ServerTxt name=ServerTxt value="Quark Server"
readOnly size=13 style="WIDTH: 107px; HEIGHT: 22px">
</TD>
<TD>
<INPUT id=Server maxLength=50 size=16 value=localhost name=Server
style="WIDTH: 170px; HEIGHT: 22px">
</TD>
</TR>
<TR>
<TD>
Page 29