<a name="id438435"></a><h3>Creating a <span class="type">SoupSession</span>
32
<a name="id557150"></a><h3>Creating a <span class="type">SoupSession</span>
33
33
</h3>
34
34
<p>
35
35
The first step in using the client API is to create a <a class="link" href="SoupSession.html" title="SoupSession"><span class="type">SoupSession</span></a>. The session object
230
230
</div>
231
231
<hr>
232
232
<div class="refsect2">
233
<a name="id412251"></a><h3>Creating and Sending SoupMessages</h3>
233
<a name="id530966"></a><h3>Creating and Sending SoupMessages</h3>
234
234
<p>
235
235
Once you have a session, you do HTTP traffic using <a class="link" href="SoupMessage.html" title="SoupMessage"><span class="type">SoupMessage</span></a>. In the simplest
236
236
case, you only need to create the message and it's ready to send:
290
290
flag.
291
291
</p>
292
292
<div class="refsect3">
293
<a name="id412355"></a><h4>Sending a Message Synchronously</h4>
293
<a name="id531070"></a><h4>Sending a Message Synchronously</h4>
294
294
<p>
295
295
To send a message and wait for the response, use <a class="link" href="SoupSession.html#soup-session-send-message" title="soup_session_send_message ()"><code class="function">soup_session_send_message</code></a>:
296
296
</p>
324
324
</p>
325
325
</div>
326
326
<div class="refsect3">
327
<a name="id412423"></a><h4>Sending a Message Asynchronously</h4>
327
<a name="id531139"></a><h4>Sending a Message Asynchronously</h4>
328
328
<p>
329
329
To send a message asynchronously, use <a class="link" href="SoupSession.html#soup-session-queue-message" title="soup_session_queue_message ()"><code class="function">soup_session_queue_message</code></a>:
330
330
</p>
385
385
</div>
386
386
<hr>
387
387
<div class="refsect2">
388
<a name="id412528"></a><h3>Processing the Response</h3>
388
<a name="id531244"></a><h3>Processing the Response</h3>
389
389
<p>
390
390
Once you have received the response from the server, synchronously or
391
391
asynchronously, you can look at the response fields in the