function sendGET(URL,POST)
on error resume next
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
if err then
            Response.Write("<p>Error: " & err.description & "<p>")
            Response.End
end if
            ' Call the remote machine the request
            objXML.open "GET", URL, false
            objXML.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"

            objXML.send(POST)
            'Response.ContentType = "text/html"
            ' return the response
            sendGET = objXML.responseText

            ' clean up
            set objXML = nothing
end function

vars= " form_keyword =00389
urls=" http://www.pricegrabber.com/search_gen_top.php";

Response.Write(sendGET(urls,vars))

Pete Lundrigan 
Media Resources Center 
Academic Web Support 
316.978.7759
http://www.mrc.twsu.edu/
[EMAIL PROTECTED] 


-----Original Message-----
From: Zaid Abdur-Rahman [mailto:info@;zaid.com] 
Sent: Monday, October 21, 2002 10:33 AM
To: ActiveServerPages
Subject: MSXML2.ServerXMLHTTP

Hello All,

I am having a bit of trouble trying to implement the following. Can
anyone give me some insight?

I am trying to use the MSXML2.ServerXMLHTTP component to hit the
following URL
http://www.pricegrabber.com/search_gen_top.php?form_keyword=00389

However, there seems to be some type of id, I am thinking session id,
that is assigned when a client first hits the site. Therefore, the above
URL would turn into 
http://www.pricegrabber.com/search_gen_top.php?form_keyword=00389&ut=421
58bf25d8fe8b6

What I tried to do is first hit the site and get the "session id" then
post a second time appending the "session id" to the URL. However, each
time I hit the site with the MSXML2.ServerXMLHTTP component it assigns a
different "session id".

Can anyone offer some insight on what is going on and how, if possible,
I can perform this?

Many thanks

Zaid Abdur-Rahman
[EMAIL PROTECTED]


---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to