pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedSimulating a POST request
3+ messages / 3 participants
[nested] [flat]
* Simulating a POST request
@ 2003-06-28 05:34 Ludwig Lim <lud_nowhere_man@yahoo.com>
0 siblings, 2 replies; 3+ messages in thread
From: Ludwig Lim @ 2003-06-28 05:34 UTC (permalink / raw)
To: pgsql-php
Hi :
How do I simulate a POST request using the
"header()" function?
Thank you very much.
ludwig lim
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Simulating a POST request
@ 2003-06-28 19:09 David Busby <busby@pnts.com>
parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: David Busby @ 2003-06-28 19:09 UTC (permalink / raw)
To: Ludwig Lim <lud_nowhere_man@yahoo.com>; pgsql-php
header(); in PHP is for the output header.
It cannot be used to create a POST type HTTP request.
you must use socket(); or the CURL to have your PHP script do an HTTP POST
style request.
There are some samples on the PHP site in the socket and curl sections of
the manual.
HTH
/B
----- Original Message -----
From: "Ludwig Lim" <lud_nowhere_man@yahoo.com>
To: "PostgreSQL Mailing List" <pgsql-php@postgresql.org>
Sent: Friday, June 27, 2003 22:34
Subject: [PHP] Simulating a POST request
>
> Hi :
>
> How do I simulate a POST request using the
> "header()" function?
>
>
> Thank you very much.
>
> ludwig lim
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Simulating a POST request
@ 2003-06-30 12:25 scott.marlowe <scott.marlowe@ihs.com>
parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: scott.marlowe @ 2003-06-30 12:25 UTC (permalink / raw)
To: Ludwig Lim <lud_nowhere_man@yahoo.com>; +Cc: pgsql-php
On Fri, 27 Jun 2003, Ludwig Lim wrote:
>
> Hi :
>
> How do I simulate a POST request using the
> "header()" function?
Are you basically trying to make the client side auto-submit a form? You
can do that easily enough, without the header() function.
Just build a form with a <body onload=document.formname.submit()> tag at
the top, and a form with all the data you need in hidden fields and a post
method.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-06-30 12:25 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-28 05:34 Simulating a POST request Ludwig Lim <lud_nowhere_man@yahoo.com>
2003-06-28 19:09 ` David Busby <busby@pnts.com>
2003-06-30 12:25 ` scott.marlowe <scott.marlowe@ihs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox