473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Retrieve Data from another webpage besides XML

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!!

Sep 13 '05 #1
5 7053
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!!

Sep 13 '05 #2
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!!

Sep 14 '05 #3
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!!
>

Sep 15 '05 #4
I concur with Curt on this.

It sounds like you have some code in that whatever.asp page that returns
some values needed by the calling page, right? So encapsulate that code in a
function, place the function in an INCLUDE file, and include the file in
whatever page needs to use that function.

Another possibility is to create a Web Service. You should Google that so
you can see if you are able to utilize that functionality. It's not too hard
to do, but there is a learning curve involved.

Bob Barrows

Vanessa wrote:
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!!


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 15 '05 #5
Thank You Bob and Curt, I have tried this today and it works!
This really free me from the hassle and the pain of using XMLHTTP. Thanks!

"Bob Barrows [MVP]" wrote:
I concur with Curt on this.

It sounds like you have some code in that whatever.asp page that returns
some values needed by the calling page, right? So encapsulate that code in a
function, place the function in an INCLUDE file, and include the file in
whatever page needs to use that function.

Another possibility is to create a Web Service. You should Google that so
you can see if you are able to utilize that functionality. It's not too hard
to do, but there is a learning curve involved.

Bob Barrows

Vanessa wrote:
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!!


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Sep 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Robert Cohen | last post by:
Hi All, I have what is an easy question for you all, but I have not idea (this is in vbscript). I have this script below that works great. It figures out the user logged in and gives the AD...
5
by: NK | last post by:
Hi, We have a webpage that has a form available on the intranet. A user will have a window open that runs a different application open. When the user accesses the webpage and clicks a button we...
3
by: Mark | last post by:
Hi all, does anyone know of a nice utility/ class which will allow me to retrieve the details of a webpage? Specifically, I would like to be able to retrive the html and then call a method which...
10
by: sanou | last post by:
Hi does anyone know if the following is possible? I have an excel spreadsheet with values that i need transferred to a certain website's form. for instance, i have a value in excel spreadsheet...
13
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end...
3
by: JM | last post by:
Before storing information from a form in database I perform follwing operations on it : $path = mysql_real_escape_string(strip_tags(trim(urldecode($_POST)))); $summary =...
6
by: Watermark | last post by:
i got problem with this i m implementing web based mail system. i want to access mbox and retrieve mail from it and display it on web page.. can anybody help me.
11
by: subhadip | last post by:
Hi , I want to retrieve any web page content using javascript . suppose I logged into my gmail account and opened my e-mail. now i want that a javascript will execute on the page and read all text...
0
by: Kity1018 | last post by:
Hi, I have a webpage which has a detailsView control with no paging. On the page's button click event, I need to access one data field to make a desicion. I have the this detailsView bind to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.