This chapter provides tutorial notes and example codes on the Perl socket test program for HTTP and SOAP communications. Topics include writing a simple Perl socket test program; sending HTTP 1.0 and HTTP 1.1 requests; sending SOAP 1.1 and SOAP 1.2 requests; fixing the issue caused by Content-Length; testing GetSpeech Web service.