Connecting Tech Pros Worldwide Forums | Help | Site Map

Faking Posted Variables

Steve Robbins
Guest
 
Posts: n/a
#1: Jul 17 '05
I have played with this some unsuccessfully and can't find any
references to it on-line.

What I have is a forms-based application where I POST the form. This
was decided on because of security and the length limits of a URL. Now
I have a need where I would like to link to a form and "fake" some of
the variables that are normally posted.

For example, I have a form that normally comes up where the user
selects information from a combobox and on reload, the fields are then
automatically filled in. I would like to be able to go to that form
from other locations and fake the POST variable of the combobox so that
the form will fill in when they first access it.

Am I trying to do the impossible?

André Nęss
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Faking Posted Variables


Steve Robbins:
[color=blue]
> I have played with this some unsuccessfully and can't find any
> references to it on-line.
>
> What I have is a forms-based application where I POST the form. This
> was decided on because of security and the length limits of a URL. Now
> I have a need where I would like to link to a form and "fake" some of
> the variables that are normally posted.
>
> For example, I have a form that normally comes up where the user
> selects information from a combobox and on reload, the fields are then
> automatically filled in. I would like to be able to go to that form
> from other locations and fake the POST variable of the combobox so that
> the form will fill in when they first access it.
>
> Am I trying to do the impossible?[/color]

No. You can try to use cURL: http://www.php.net/curl

There is also Snoopy: http://snoopy.sourceforge.net/

André Nęss
Matthias Esken
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Faking Posted Variables


Steve Robbins <srobbins@no.spam.charter.net> schrieb:
[color=blue]
> What I have is a forms-based application where I POST the form. This
> was decided on because of security and the length limits of a URL. Now
> I have a need where I would like to link to a form and "fake" some of
> the variables that are normally posted.[/color]

I'd suggest that you make a GET-Request to a new script, which will make
a POST-Request to your existing script.

The FAQ of the german speaking PHP newsgroups has a nice example for a
POST-Request. Read http://www.dclp-faq.de/q/q-code-post.html, ignore the
short german text and just have a look at the code. You should be able
to understand how it works.


On the other hand you could just change your script and get the data fom
the $_REQUEST-array instead of the $_POST-array.

Regards,
Matthias

P.S.: You might want to wait for a solution from the genius "ww",
because I'm "one of those stupid people posting to news groups
that has NO clue what he's talking about".
See Message-Id <kendrvsv1ut1gugqudiofvo9e6q4u4f5mo@4ax.com> for
details.
:-)
--
Who are we? What are we doing here? - Amnesy International
Steve Robbins
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Faking Posted Variables


On Mon, 17 Nov 2003 18:31:57 +0000, André Nęss
<andrena.spamreallysucks@ifi.uio.no> wrote:[color=blue]
> Steve Robbins:
>
> No. You can try to use cURL: http://www.php.net/curl
>
> There is also Snoopy: http://snoopy.sourceforge.net/[/color]

Thanks! I will look these over.

Steve Robbins
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Faking Posted Variables


On Mon, 17 Nov 2003 18:39:13 +0100, Matthias Esken
<muelleimer2003nospam@usenetverwaltung.org> wrote:[color=blue]
> The FAQ of the german speaking PHP newsgroups has a nice example for a
> POST-Request. Read http://www.dclp-faq.de/q/q-code-post.html, ignore
> the short german text and just have a look at the code. You should be
> able to understand how it works.[/color]

Thanks, I'll play around with that.
[color=blue]
> P.S.: You might want to wait for a solution from the genius "ww",
> because I'm "one of those stupid people posting to news groups
> that has NO clue what he's talking about".
> See Message-Id <kendrvsv1ut1gugqudiofvo9e6q4u4f5mo@4ax.com> for
> details.
> :-)[/color]

I ignore trash talk in the groups. All help is good and I appreciate
your input.
k-caj
Guest
 
Posts: n/a
#6: Jul 17 '05

re: Faking Posted Variables


Steve Robbins wrote:[color=blue]
> What I have is a forms-based application where I POST the form. This
> was decided on because of security and the length limits of a URL.
> Now I have a need where I would like to link to a form and "fake"
> some of the variables that are normally posted.
> For example, I have a form that normally comes up where the user
> selects information from a combobox and on reload, the fields are then
> automatically filled in. I would like to be able to go to that form
> from other locations and fake the POST variable of the combobox so
> that the form will fill in when they first access it.
> Am I trying to do the impossible?[/color]

this works for me :

ftp://ftp.holotech.net/postit.zip

:)

--
--- --- --- --- --- --- ---
jack@croatiabiz.com


Closed Thread


Similar PHP bytes