Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 13th, 2003, 06:12 AM
Registered User
Join Date: Sep 2003
Location: Leicester, UK, United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem parsing html using MS.XMLHTTP

I've been working on this asp page for ages now and can not seem to get my head around it,

bascailly when i do a response.write any '£' symbols are being replaced with '?' doing a response.binarywrite shows the correct symbols but this is no good to me as I need to parse the data.

the code I am using is shown below, any help on this matter would be much appreciated.

Thanks Aaron

URL = "http://cgi6.ebay.co.uk/ws/eBayISAPI.dll?ViewSellersOtherItems&include=0&user id=grand2010&sort=2&rows=25&since=-1&rd=1"
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")'
objXMLHTTP.Open "GET", URL, false

sHTML = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
Reply With Quote
  #2 (permalink)  
Old September 15th, 2003, 11:38 PM
Registered User
Join Date: Sep 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

This one got me too..

XMLHTTP returns the results as a unicode string.

To solve this, I used Server.CreateObject("WinHttp.WinHttpRequest.5.1") instead. All properties and methods are the same.

This component is available by default on any Windows 2000 Server with SP3. It works in exactly the same way, but for some reason does not return ResponseText as unicode.

If for some reason you MUST use the XMLHTTP component, let me know and I'll explain how (it involves converting the binary output to a string, a time consuming task!)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing HTML with Regex hugh@kmcnetwork.com VB How-To 0 February 5th, 2007 05:44 PM
Parsing an html file hydroxide Pro PHP 3 June 27th, 2006 02:12 AM
Problem with using POST method with XMLHTTP vvr Classic ASP XML 1 December 6th, 2004 01:44 AM
using xmlhttp to get html source files, but.. noonkhamei XML 0 April 14th, 2004 12:32 AM
Problem With Microsoft.XMLHTTP binod XSLT 2 August 13th, 2003 02:33 PM

All times are GMT -4. The time now is 02:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.