[ Tests: HTML Forms -Encoding -Environment Vars -File Upload -Sockets -Includes ]

Sockets Test

This test is being run on Perl version 5.012002.

In order for the Fluid Dynamics Search Engine crawler to work, all Socket.pm tests must succeed.

Web Server to Test
Host:
Port:
Read depth:

Read depth is the number of bytes to retreive from the remote server during the test.


Beginning a series of tests that use Perl's raw sockets functions.

Q. can we do a DNS lookup on '1800access.net' using gethostbyname?
A. success - hostname '1800access.net' maps to IP 50.63.202.33.

Success: raw Perl functionality confirmed.


Beginning a series of tests that use Perl's Socket.pm library functions, with stdio.

Q. can we include Socket.pm?
A. success - 'use Socket' returned okay.

Q. can we do a DNS lookup on '1800access.net' using inet_aton from Socket.pm?
A. success - hostname '1800access.net' maps to IP 50.63.202.33.

Q. can we create a TCP/IP socket?
A. success - socket created.

Q. can we connect to '1800access.net:80' with our new TCP/IP socket?
A. success - socket connected.

Q. can we send an HTTP request over this socket using send()?
A. success - sent data.

Q. can we read an HTTP response over this socket using read()?
A. success - read data:.

HTTP/1.0 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Tue, 28 Jun 2016 22:09:31 GMT Content-Length: 26 Age: 1

Q. can we close this socket?
A. success - closed socket.

Success: Socket.pm functionality with stdio confirmed.


Beginning a series of tests that use Perl's Socket.pm library functions, without stdio.

Q. can we include Socket.pm?
A. success - 'use Socket' returned okay.

Q. can we do a DNS lookup on '1800access.net' using inet_aton from Socket.pm?
A. success - hostname '1800access.net' maps to IP 50.63.202.33.

Q. can we create a TCP/IP socket?
A. success - socket created.

Q. can we connect to '1800access.net:80' with our new TCP/IP socket?
A. success - socket connected.

Q. can we send an HTTP request over this socket using syswrite()?
A. success - sent data.

Q. can we read an HTTP response over this socket using sysread()?
A. success - read data:.

HTTP/1.0 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Tue, 28 Jun 2016 22:09:32 GMT Content-Length: 26 Age: 0

Q. can we close this socket?
A. success - closed socket.

Success: Socket.pm functionality without stdio confirmed.


Beginning a series of tests that use Perl's IO::Socket library functions.

Note: FDSE does not use this library by default, but if this library succeeds where Socket.pm has failed, the product can be modified to use this interface.

Q. can we include IO::Socket?
A. success - 'use IO::Socket' returned okay.

Q. can we connect to '1800access.net:80' with IO::Socket?
A. success - socket connected okay.

Q. can we send an HTTP request over this socket?
A. success - sent data.

Q. can we read an HTTP response over this socket?
A. success - read data:.

HTTP/1.0 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Tue, 28 Jun 2016 22:09:32 GMT Content-Length: 26 Age: 0

Q. can we close this socket?
A. success - closed socket.

Success: IO::Socket functionality confirmed.


Beginning a series of tests that use the LWP library functions.

Note: FDSE does not use this library by default, but if this library succeeds where Socket.pm has failed, the product can be modified to use this interface.

Q. can we include LWP?
A. success - 'use LWP' returned okay.

Q. can we include LWP::UserAgent?
A. success - 'use LWP::UserAgent' returned okay.

Q. can we include HTTP::Request?
A. success - 'use HTTP::Request' returned okay.

Hey! This is libwww-perl-6.05. Excellent choice!

Q. can we build user-agent and request objects?
A. success - object initialized.

Q. can we request a web page from '1800access.net:80'?
A. success - content returned:.

<!DOCTYPE html><body style="padding:0; margin:0;"><html><body><iframe src="http://mcc.godaddy.com/park/ZGtjZT5jpUWzMv5upzp=" style="visibility: visible;height: 100%; position:absolute" allowtransparency="true" marginheight="0" marginwidth="0" frameborder="

Success: LWP functionality confirmed.



Test CGI Package v1.0.0.0002 - © 2001 by Zoltan Milosevic