Connecting Tech Pros Worldwide Help | Site Map

Faking Posted Variables

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:10 AM
Steve Robbins
Guest
 
Posts: n/a
Default Faking Posted Variables

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?

  #2  
Old July 17th, 2005, 01:10 AM
André Nęss
Guest
 
Posts: n/a
Default 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
  #3  
Old July 17th, 2005, 01:11 AM
Matthias Esken
Guest
 
Posts: n/a
Default 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
  #4  
Old July 17th, 2005, 01:11 AM
Steve Robbins
Guest
 
Posts: n/a
Default 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.

  #5  
Old July 17th, 2005, 01:11 AM
Steve Robbins
Guest
 
Posts: n/a
Default 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.
  #6  
Old July 17th, 2005, 01:11 AM
k-caj
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.