Jump to content

Have my server request data from another


counter123

Recommended Posts

I am trying to setup an interface such that a user of my site can access his account on another site. I have authorization to do this from the other site, and have given them the IP address of my server. A request of the other server must contain my authorization ID, and come from my server:A users loads my first page (mysite.com/index.asp).index.asp redirects to (othersite.com/call.jsp?...) and the server at othersite.com sees it as having been requested by the IP address mysite.com is hosted on.othersite.com sends a form to the user's browser to let the user logon to othersite.com, and give mysite permission to access his account.othersite.com loads mysite.com/callback.asp?..., with the users ID at othersite.com as a parameter. The user doesn't see this.callback.asp on my server is supposed to request othersite.com/call2.jsp?... requesting an action on the users account on othersite. (the user doesn't see this eather) othersite is supposed to see the request coming from my server, but it sees it coming from the user's browser. :) If not for this error, othersite.com will then call mysite.com/callback.asp?... with details of the transaction, and mysite is supposed to send an appropriate page to the user's browser.I think the other sites using this interface are getting it to work using simplexml in PHP, but my WPP plan doesn't include PHP.Thanks in advance for any advice.

Link to comment
Share on other sites

If the response is coming from their browser then it sounds like you're either redirecting them or using AJAX. If you want it to come from the server then you need to open a connection using ASP and send the request that way. Here's an example of doing it one way, but like anything else in ASP the object that you need to use will depend on what your server supports.http://www.asp101.com/samples/viewasp.asp?file=http.asp

Link to comment
Share on other sites

If the response is coming from their browser then it sounds like you're either redirecting them or using AJAX. If you want it to come from the server then you need to open a connection using ASP and send the request that way. Here's an example of doing it one way, but like anything else in ASP the object that you need to use will depend on what your server supports.http://www.asp101.com/samples/viewasp.asp?file=http.asp
Thank you, that solved my problem (almost, I needed to use a different verison of the xmlhttp for my server to support it).
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...