Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POSTING to another server with ASP

Status
Not open for further replies.

davecapone

Programmer
Oct 3, 2000
48
US
Is there a way to POST to another web server's scripts using default IIS components so that an add-on component like AspHTTP by isn't required??

Thanks for any Help,
Dave [sig][/sig]
 
Hi,
I am also stuck is same kind of problem, did you find any solution to it. Please share if you have.
Regards,
Pankaj
 
Can you write scripts on the other server? Does this data have to be secure?

If yes to the first and no to the 2nd then pass it using a querystring.
I've written stuff where two database servers had to be kept in sync due to users using them to login.
I had IIS running on both, on the remote server it had a script that took info from the querystring and processed it, then redirected back to a page on the local server.

My querystring looked something like:

server1.domain.ext/form1.asp
posted to
server1.domain.ext/form1.asp?un=username&pw=pass
which while processing redirected to
server2.domain.ext/form1.asp?un=username&pw=pass
then that redirected back to server1 displaying any error messages etc.


Scott Heath
AIM: orange7288
 
Actually we are having two servers one is internet and other is intranet .We have to communicate between two these servers ,we are using ASPHTTP Component to communicate betwen these servers.Do u know any of the other third party tool like asphhtp component which will be used to communicate between two servers.
 
I'm using one of two components (I'm not sure which since it's all on my dev box and I've found two on there)
This is what I use to send messages to my tivo (when my server stradled my internal and external network)
I also found something called ASPTear. It looks like it does the same thing. Do a google on it, the first link is the one you need.

Code:
'create URL
URL = "[URL unfurl="true"]http://tivo.domain.com:9900/displaytext?text="[/URL] & message & "&delay=20&x=0&y=0&fg=153&bg=1&submit=Display+Text"

Dim objXmlHttp
Dim strHTML
Set objXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXmlHttp.open "GET", URL , False

objXmlHttp.send
Response.Write "Status: " & objXmlHttp.status & " " _
	& objXmlHttp.statusText & "<br />"
strHTML = objXmlHttp.responseText


If  objXmlHttp.status = "200" Then
'Response.Write(objXmlHttp.status)
'Response.Write("Yes<br>")
End IF

Scott Heath
AIM: orange7288
 
IS ASPTear component is recommended by Microsoft.As previously we ar using ASPHTTP component and that is not recommended by Microsoft.Do anybody has idea of ASPTear component?
 
I'm not sure if it's recomended my M$ but I've had no issues with ASPTear. Having a M$ recomendation shouldn't matter, I've seen M$ recomend products and when tried it brought down servers, one bit of advice I can give is, ask people who work in the real world (which is what you did, good job!) about things, because what large companies say the way things ought to work, isn't how they really work.


Scott Heath
AIM: orange7288
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top