Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-15-2006, 09:40 AM   #1 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
POST Vars

Out of curiousity, when are post vars sent to the server? Is it done when the user clicks the submit button, or are POST vars pulled from the user's browser when the script referred to in the action declaration loads?
__________________
Current Project
Redline is offline   Reply With Quote
Old 05-15-2006, 11:14 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
When the user clicks the button, the action method is performed as a request from the users browser, if you'd requested it as GET, the browser will send every bit of info presented in the form as part of the url, if it is required as POST, the browser will include the info in the body of the request, where serverside you can obtain it from teh global POST var.
http://en.wikipedia.org/wiki/Hyperte...equest_methods
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 05-15-2006, 11:31 AM   #3 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Okay, so the data doesn't travel across the internet until a connection is made to the "action" page, right?

Say a login form resided on http://www.mypage.com/. A user puts in their username and password, hit submit and are taken to httpS://www.mypage.com/login.php

Their username/password combo doesn't go anywhere until a secure connection is made with login.php right?
__________________
Current Project
Redline is offline   Reply With Quote
Old 05-15-2006, 02:39 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
Quote:
Originally Posted by Redline
Their username/password combo doesn't go anywhere until a secure connection is made with login.php right?
that is correct. if you really wanted to test it, you could setup a sniffer and analyze the data sent over the network.
__________________
Mike
sde is offline   Reply With Quote
Old 05-15-2006, 03:13 PM   #5 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Any recommendations on a decent free sniffer? I've looked into it in the past, but haven't really been able to find a good program
__________________
Current Project
Redline is offline   Reply With Quote
Old 05-15-2006, 03:50 PM   #6 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Nevermind, I've got Ethereal up and running. Sweet 8)
__________________
Current Project
Redline is offline   Reply With Quote
Old 05-15-2006, 03:51 PM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
that is the one i would have suggested.
__________________
Mike
sde is offline   Reply With Quote
Old 05-16-2006, 02:38 AM   #8 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
You can also find some good information about the specifics of the HTTP protocol for messages at w3c.org
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Post Hide Link jdm PHP 10 02-12-2005 07:05 AM
GET and POST with JSP sde Java 1 12-30-2004 02:30 PM
sending POST multiple post requests in one php script. sde PHP 2 08-09-2003 05:10 PM
post indicators abc123 Feedback 7 08-14-2002 08:25 AM


All times are GMT -8. The time now is 08:03 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting