<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">The ugly details are found in HttpSocket's class side method;<DIV>httpGetDocument: url args: args accept: mimeType request: requestString</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Its a little ugly - an HttpRequest class should bundle up a lot of that complexity in a nice data structure that represents the structure of a request.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>But there it is.</DIV><DIV><BR><DIV><DIV>On Aug 24, 2006, at 8:58 AM, <A href="mailto:andy.burnett@knowinnovation.com">andy.burnett@knowinnovation.com</A> wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><FONT size="2" face="sans-serif">First, Smalltalk is just amazing!  I am so impressed with what it is possible to do - with practically no knowledge!</FONT> <BR> <BR><FONT size="2" face="sans-serif">Second. Due to my lack of knowledge I am now stuck ;-)</FONT> <BR> <BR><FONT size="2" face="sans-serif">I am still working on the problem of building a Smalltalk version of Wget.  I have used the HTTPClient as my basic object and that is doing most of what I want. However, I can't get to the HTTP Headers. I noticed that HTTPSocket does seem to offer the headers but this is where I get stuck.</FONT> <BR> <BR><FONT size="2" face="sans-serif">The creation methods of HTTPSocket  (i.e. telling it which url to go to) seem to only exist on the class side.  But the methods for getting to headers etc only exist in the instance.  I can't work out how to create an instance of the socket and tell it which url to go to.  All the construction methods just seem to return the class.  </FONT> <BR> <BR><FONT size="2" face="sans-serif">Obviously I am missing something pretty basic. Could someone please enlighten me?</FONT> <BR> <BR><FONT size="2" face="sans-serif">TVM</FONT> <BR><FONT size="2" face="sans-serif">AB</FONT><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Beginners mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>