We have implemented the search engine and embedded results in an asp page using the following code
<%
Dim WshShell, env, oExec
Set WshShell = CreateObject("WScript.Shell")
Set env = WshShell.Environment("Process")
env.Item("REQUEST_METHOD") = "GET"
env.Item("QUERY_STRING") = Request.QueryString
env.Item("REMOTE_ADDR") = Request.ServerVariables("REMOTE_ADDR")
set oExec = WshShell.Exec(Server.MapPath("search.cgi"))
oExec.StdOut.ReadLine() ' skip the HTTP header line
Response.Write(oExec.StdOut.ReadAll())
%>
This is working and producing the first page of results in the expected page, format and style.
However, the links for results pages 2,3 etc are not pointing at the asp page but at the cgi script. How can we correct this?
Many thanks
<%
Dim WshShell, env, oExec
Set WshShell = CreateObject("WScript.Shell")
Set env = WshShell.Environment("Process")
env.Item("REQUEST_METHOD") = "GET"
env.Item("QUERY_STRING") = Request.QueryString
env.Item("REMOTE_ADDR") = Request.ServerVariables("REMOTE_ADDR")
set oExec = WshShell.Exec(Server.MapPath("search.cgi"))
oExec.StdOut.ReadLine() ' skip the HTTP header line
Response.Write(oExec.StdOut.ReadAll())
%>
This is working and producing the first page of results in the expected page, format and style.
However, the links for results pages 2,3 etc are not pointing at the asp page but at the cgi script. How can we correct this?
Many thanks
Comment