"this is the part I am having problems with."
The ASP code is hiding a lot of details. I believe objHttp.responseText is a simple return of the received plaintext from the stream. That is, that objHttp.responseText includes everything minus the header. Therefore, if the document has only one word, it will show in here. I am assuming this - check an ASP object tree for the details.
Let's assume I am right. What you can do is write to the resource handle which fsockopen() returns and then immediately afterwords check that resource handle for results with fgets().
For example:
$fp = fsockopen ('www.domain.tld', 80, $errno, $errstr, 30);
$fp is our file pointer - in this case it goes to a socket. So far, we have opened a socket, a connection. Now let's write to it with fputs():
fputs ($fp, $header . $token);
fputs() is also fwrite(). $header is an http header as a string and $token is an authentication key (which is a common practice, not sure if it applies to your situation).
Here we are writing to a file pointer, which is connected to a stream. Behind the scenes, the webserver should respond and write something to the other end of $fp. We can of cource check $fp to see if this has occured.
fputs($fp, $something_to_send);
while (!feof($fp)) {
$response .= fgets($fp);
}
fclose($fp);
Here we have sent some data (a header in your case) and are checking the socket stream for return data. We read this data with fgets and write to $response. This is a loop, so don't leave out the concat operator on $response.
From here, you can search $response multiple ways, for example by exploding it into an array and looping through that or with a regular expression.
Check out the PHP online manual - especially the comments section. There is a lot of useful code in there, practically for every function.