Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Response.AddHeader
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mafifi
Junior Member

USA
308 Posts

Posted - 04 October 2007 :  20:11:06  Show Profile  Send mafifi an ICQ Message
Is it possible to send values from one server to another using custom headers (Response.AddHeader)? A sample code or a link will be appreciated.

Regards,

Mo

Podge
Support Moderator

Ireland
3776 Posts

Posted - 05 October 2007 :  05:19:15  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
What exactly are you trying to do ?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

mafifi
Junior Member

USA
308 Posts

Posted - 05 October 2007 :  07:38:56  Show Profile  Send mafifi an ICQ Message
I am trying to pass user's information from an ASP 3.0 application hosted on an IIS 5.0 server (Server 1)to a second application running on a second server (server 2) on a different domain. Cookies will not work as they will not work across domains, actually they do but very complicated. So I am passing the information in the HTTP header as follows:

Response.AddHeader "Company", Session("Company_Name")
Response.AddHeader "Email", Session("Email")
Response.AddHeader "Telephone", Session("Phone")


Is there a way to read the information by server 2?

Regards,

Mo
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 05 October 2007 :  07:47:12  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Two standard ways to do it would be

1. A webservice
2. Create a html page with a form on the destination server and HTTP POST or GET to it using the xmlhttp component.


Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 05 October 2007 :  11:22:26  Show Profile  Send pdrg a Yahoo! Message
This is totally SOAP/WebService territory, it's simple technology, rugged as boots, can support as much or as little fanciness as you like (eg https, transactionalisation, etc...or just passing a value with a ok/fail response!)

Something else you MAY like to consider is using message queueing for robustness - it adds very little overhead, is pretty simple to work with once you understand it, and prevents you losing data/losing the whole system if server 1/server2 goes down.
Go to Top of Page

mafifi
Junior Member

USA
308 Posts

Posted - 08 October 2007 :  19:44:22  Show Profile  Send mafifi an ICQ Message
Thanks for the response. I will be doing some research on the subjets of SOAP/WebServices and will keep you posted.

Regards,

Mo
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 09 October 2007 :  13:11:03  Show Profile  Send pdrg a Yahoo! Message
They're trivial to write if you do any .NET, but entirely possible with ASP classic too. SOAP = Simple Object Access Protocol, you should find tutorials around, MSDN's certainly worth a try :-)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07