sending form to specific port for security

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eatrom
Forum Newbie
Posts: 15
Joined: Tue Jul 16, 2002 8:32 am
Location: White North of Minnesota

sending form to specific port for security

Post by eatrom »

I think I know the answer to this, but want to validate it. Isn't the port the number in the url after a colon? So https://www.thisserver.com:9999/somepage.html would use port # 9999?

:?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

yes that would specify youre port number.

http://localhost:80 if port is 80 ;-)
eatrom
Forum Newbie
Posts: 15
Joined: Tue Jul 16, 2002 8:32 am
Location: White North of Minnesota

Post by eatrom »

ol4pr0 wrote:yes that would specify youre port number.

http://localhost:80 if port is 80 ;-)
Thanks.

Now, can I submit a form via POST from a php script without user interface? IE: I could have an url in a Header redirect and paste the various parameters on like:

Code: Select all

<?php
header("Location: https://www.thisplace.com:80/thispage.php?a=123&b=234");
?>
But can I "simulate" a form sending a POST to an url??

{wondering minds want to know...}

:?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Guess you wont know untill you will try it ;-)
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

I don't believe it's possible, since it's sort of a security risk.


You could always store the vars via hidden things and have a submit button saying "Click here to continue" or whatever.
Post Reply