I am scrapping some web pages. I have a simple asp page with a textarea and the next page pulls from the textarea to do some scrapping etc. All of the test pages that am scrapping are fine. However, I have to test examples in which my page will not pull the data from the textarea and I have no clue why. I thought perhaps I needed to increase the rows in the textarea but that should not matter - wouldn't it simply send what it could?
I am using localhost, classical asp and all of other examples process just fine - I can pull the contents of the textarea.
I have enclosed the coding from my two pages. The contents of the textarea will contain the source code that is copied and pasted from either emails or html pages. As I have said, all my other examples work fine EXCEPT for 2 and those 2 are the ones I need to process the most. Any help is appreciated. The error message I receive is this:
The website cannot display the page
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
Below is my textbox page:
<%@ Language=VBScript %>
<form method="post" action="Page.asp" name="Page.asp">
Paste Text the Data to be Extracted into the box.</br>
Then click the Submit Button</br></br>
<textarea id="txtinfo1" name="txtinfo1" rows ="25" cols="80"> </textarea>
<input type="submit" name="Submit" value="Submit">
And this is my page to pull the content of the textbox:
<%@ Language="VBScript" %>
<meta charset="utf-8" />
response.write "Am at Page.asp" & "<br>"
sText = Request.Form("txtinfo1")
if sText = "" or isNull(sText) then
write "Unable to pull text"
strLength = Len(sText)
response.write "length" & "<br>"