[PHP] POST without a form

2003-01-30 Thread arthur.chereau
Hi,

A PHP page (main.php) loads another page (doit.php) via a form. doit.php gets the data
via $_POST.

Now, from a third page (other.php), I need to load doit.php with other data, but
automatically, without a form.

How can I redirect to doit.php and send POST data at the same time ? (as if a form was
filled)

I tried the fsockopen method, described at e.g.
http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51, but it doesn't
redirect to a page, it just gets its output. It need something like header("Location:
doit.php") with POST data.

doit.php can't be modified. I can't use javascript.

What is the canonical way to do this in PHP ?

--

Faites un voeu et puis Voila ! www.voila.fr 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] POST with PHP -- please help !

2003-02-03 Thread arthur.chereau
I need to redirect the browser to an external website and to automatically send POST
data to the site, without a form.
Basically I need header("Location: ...") - that is true redirection - with POST.

How can I do this with PHP ?



--

Faites un voeu et puis Voila ! www.voila.fr 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] POST_with_PHP_--_please_help_!

2003-02-03 Thread arthur.chereau
That's right, but with curl it's not a true redirection: you just print the content of 
the target page, you don't redirect to the page.

What I need is "automated forms", that send the same data as forms but without user 
interaction.
I can't use javascript to automatically send a form.


> You can do posts with curl
> 
> http://www.php.net/manual/en/ref.curl.php
> 
> olinux
> 
> 
> --- "arthur.chereau" <[EMAIL PROTECTED]> wrote:
> > I need to redirect the browser to an external
> > website and to automatically send POST
> > data to the site, without a form.
> > Basically I need header("Location: ...") - that is
> > true redirection - with POST.
> > 
> > How can I do this with PHP ?
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
--

Faites un voeu et puis Voila ! www.voila.fr 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php