POST after a POST
POST after a POST
POST after a POST
POST after a POST
POST after a POST
POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST
POST after a POST POST after a POST
POST after a POST
Go Back  Xtreme Visual Basic Talk > > > POST after a POST


Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2013, 07:51 AM
lamy's Avatar
lamy lamy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: under your bed
Posts: 347
Default POST after a POST


basically i'm looking for a way to POST to another page after receiving a POST from another page, web client or web request can do this but it is server-side, i needed to POST to a page and POST it automatically to another

here's what i currently have, it works but im still looking for an alternative if there is:

i have 3 sites that will be integrated
  1. Site 1: Front-end - this is where they will input the required data
  2. Site 2: Pass-through - this will handle the redirection depending on what domain it came from
  3. Site 3: Fulfillment - this is where the data is processed (HTTP POST only)

everything is entered in Site 1, submission will happen by POSTing to Site 2
Site 2 will validate everything and forwards (HTTP POST) the data to Site 3
Site 3 will process the data and returns the result to Site 2
Site 2 will then forward the result back to Site 1

Site 3 can be configured but it is designed only to return the result to single URL, hence the need for a pass-through so it can forward the result to its proper requester in-case another Site 1 will use it

anyone?
__________________
slow down when you need to hurry, stop when you need to move on,
look back when you need to forget, or you might slip and leave sanity
Reply With Quote
  #2  
Old 07-11-2013, 11:16 PM
Qua's Avatar
QuaPOST after a POST Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

I'm not sure what you are asking? From your back-end it is entirely possible to do web requests however you want to. .NET provides several alternatives for doing so. I would suggest that you take a look at one of these 3 alternatives:
  • HttpClient: A recently added class that is designed around making web requests easy. This is the newest alternative, and I would suggest using this one if possible.
  • WebClient: The predecessor to HttpClient. Has much of the same functionality and is available in previous versions of .NET
  • HttpWebRequest: Requires a bit more work to get going, and the two other components are built upon this one.
Either of these three will let you do posts across sites rather easily. If you're on a newer version of .NET (4.0/4.5) I would strongly suggest that you use the HttpClient.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #3  
Old 07-12-2013, 04:02 AM
lamy's Avatar
lamy lamy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: under your bed
Posts: 347
Default

thanks Qua, but i was looking for something that is close to redirection via HTTP POST

basically i'm looking for another way to have 1st domain to post to 2nd domain which will automatically post to the 3rd domain (all HTTP POST)

this is because the 3rd domain will post back after processing another set of inputs to the 2nd domain only (HTTP POST), it is designed to return only to 2nd domain, so the last redirection is handled by the 2nd domain, more like a middle man

doing this at back-end is not an option since the 3rd domain will require another set of inputs and possibly do the same
__________________
slow down when you need to hurry, stop when you need to move on,
look back when you need to forget, or you might slip and leave sanity
Reply With Quote
  #4  
Old 07-12-2013, 04:10 AM
Qua's Avatar
QuaPOST after a POST Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

It is not possible server side to get the client to issue a post. The best you can do is a redirection which by nature is GET-orientated.

Even when you're client side you cannot do cross site posting with Javascript.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #5  
Old 07-12-2013, 04:19 AM
lamy's Avatar
lamy lamy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: under your bed
Posts: 347
Default

thanks Qua

i guess i'd have to settle with how i'm doing it now

cheers!
__________________
slow down when you need to hurry, stop when you need to move on,
look back when you need to forget, or you might slip and leave sanity
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
POST after a POST
POST after a POST
POST after a POST POST after a POST
POST after a POST
POST after a POST
POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST POST after a POST
POST after a POST
POST after a POST
 
POST after a POST
POST after a POST
 
-->