PDA

View Full Version : Help please, need alernative to AspHTTP.Conn


homehopperc
03-09-2006, 06:09 AM
Hello, I desperatly need an alternative to the server objects component AspHTTP.Conn

As DASP is removing this soon and my site using this component to validate paypal payments (IPN), and is not functional without this feature.


Could anyone please point me in the right direction?


Code currently working is....

Set HttpObj = Server.CreateObject("AspHTTP.Conn")
HTTPObj.Url = strWebAddress
strResult = HTTPObj.GetURL


But i require an alternative to use in ASP.



thank a bunch DREW

joelnet
03-09-2006, 11:12 AM
Try looking into MSXML2.ServerXMLHTTP

http://www.eggheadcafe.com/articles/20010209.asp


Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET

bruce
03-10-2006, 01:48 AM
You can also use the IP*Works component

The following should be the equivalent to your code

Set HTTP = Server.CreateObject('IPWorksASP6.HTTP')
HTTP.Get strWebAddress
strResult = Server.HTMLEncode( HTTP.TransferredData )
Set HTTP = nothing

For more information on this component, see http://www.nsoftware.com/products/component/http.aspx

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

homehopperc
03-11-2006, 07:05 AM
thank you bruce, am i to understand that the ipworks ASP version is also installed, not just the ASP.NET?

Eric
03-11-2006, 09:09 AM
Right now the ASP version is installed, but not the ASP.NET version

DiscountASP.NET
http://www.DiscountASP.NET

roryknowles
05-09-2006, 04:25 AM
This is what I use for a site indexer.
Granted I have only used it on my own IIS locally but i didnt install anything special.
Worked for over 300 URLs today ..

[quote]
SETobjXmlHttp=Server.CreateObject('Msxml2.ServerXM LHTTP')
objXmlHttp.open'GET',strURL,False
objXmlHttp.send
strHTML=objXmlHttp.responseText
</CODE>