 <p><code>WebClient.resCode</code> is a non-nullable <code>Int</code> so it is 0 by default hence the problem would be either the request not being sent or the response not being read. </p> <p>As you are obviously writing the request, the problem should the latter. Try calling <a href="http://fantom.org/doc/web/WebClient#readRes" rel="nofollow">WebClient.readRes()</a> before <code>resStr</code>.</p> <blockquote> <p>This readRes()</p> <p>Read the response status line and response headers. This method may be called after the request has been written via writeReq and reqOut. Once this method completes the response status and headers are available. If there is a response body, it is available for reading via resIn. Throw IOErr if there is a network or protocol error. Return this.</p> </blockquote> <p>Try this:</p> <pre><code>echo(spreadsheet_inputer.readRes.resStr) </code></pre> <p>I suspect the following line will also cause you problems:</p> <pre><code>spreadsheet_inputer.reqOut.writeXml(xml_test.writeToStr).close </code></pre> <p>becasue <code>writeXml()</code> escapes the string to be XML safe, whereas you'll want to just print the string. Try this:</p> <pre><code>spreadsheet_inputer.reqOut.writeChars(xml_test.writeToStr).close </code></pre>