Thanks Curt!
But I need to pass the querystring dynamically into the URL (in a loop
actually), so I guess INCLUDE can't be used.
Any more help from anyone? please help me out on this....
will be liked this:
at test.asp at aa.domain.com
......
do while <not end of loop>
do something to get value or to define value of ID and CurrentState for
example
.....
Response.Buffer = True
PostURL = "http://bb.domain.com/xml/whatever.asp?ID=" &ID&
"&CurrentState=" &CurrentState
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", PostURL, False,"",""
xml.Send
dataNeeded = xml.responseText
Set xml = Nothing
....
process something based on values of dataNeeded from bb.domain.com
....
loop
"Curt_C [MVP]" wrote:
> yes you can pass a QS in the URL, but you can't dynamically build it, since
> it's processed BEFORE the asp code... if thats fine then this should work
> fine.
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>
>
>
> "Vanessa" wrote:
>
> > Curt,
> >
> > Thanks for the quick response! Can we pass querystring in INCLUDE?
> > Server.Execute can do it but can't send querystring.
> >
> > The reason we have two folders for our websites becuase each one is
> > connecting to a different database. And here is supposed to do:
> >
> > at test.asp at aa.domain.com
> >
> > .....
> > do something
> > .....
> > Response.Buffer = True
> > PostURL = "http://bb.domain.com/xml/whatever.asp?ID=123&state=2&update=N"
> > Set xml = Server.CreateObject("Microsoft.XMLHTTP")
> > xml.Open "POST", PostURL, False,"",""
> > xml.Send
> > dataNeeded = xml.responseText
> > Set xml = Nothing
> > ....
> > process something based on values of dataNeeded from bb.domain.com
> > ....
> >
> >
> > So do you think INCLUDE will work instead of XML object in this flow?
> >
> > Thanks alot!!!!
> >
> >
> > "Curt_C [MVP]" wrote:
> >
> > > If both sites/pages are in your control why not rethink the way you are
> > > approaching? Perhaps have both use a shared INCLUDE file, so they may share
> > > the content?
> > >
> > > --
> > > Curt Christianson
> > > site: http://www.darkfalz.com
> > > blog: http://blog.darkfalz.com
> > >
> > >
> > >
> > > "Vanessa" wrote:
> > >
> > > > I have a question, is that any other way to retrieve data from another
> > > > webpage besides using XML object? Because I am using XML object now but give
> > > > me so much problems.
> > > >
> > > > If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
> > > > msxml3.dll error '80072ee2'
> > > > The operation timed out
> > > >
> > > > If I used Microsoft.XMLHTTP object, it will hang IE!
> > > >
> > > > In both cases, I have to wait for half an hour or more in order for the XML
> > > > object to be working again.
> > > >
> > > > Actually both webpages that's communicating are hosted at the same machine.
> > > > The main site (ex. aa.domain.com) points to particular folder under it, while
> > > > another one (ex. bb.domain.com) points to another folder which is two levels
> > > > up to the first one.
> > > >
> > > > Please help!!
> > > >