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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form post & get submission routes

Status
Not open for further replies.

nell1

Technical User
Jan 8, 2003
142
GB
This may seem like a basic question.. but I'm confused.

If a from is submitted via 'post' or 'get'... will it always go via the server? Even if the action attribute is pointing at an external server?

Its just that I have a from that is submitting info to an application on an external server. There is a firewall on the external application server that authenticates via my server's IP. I was under the understanding that my form submission would go directly to the application server and not via ours?

Cheers,

Nell1
 
All forms are submitted to the requested server defined in the FORM's action attribute i.e Action=" (any server other than your host where you have hosted your Form page) Or
Action="page1.asp" (your local server)



When you submit a form to a server using GET (its the default method) method all values of the form's controls are passed to the server using a query string by appending it to the requested URL.

Then you can access it using Request.QueryString("controlname")

While POST Method passes the form's controls values to the server via http header. Then you can access it using Request.Form("controlname")

Therefore is quite obvious that your submission will go directly to the application server not via your server.

As long as the IP is concerned the Target will get Client machine (Browser) IP not the Server IP where the form page is hosted (if both are not the same machine).
(form page = the page that is used to submit the values to the target server.)


[peace]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top