[phorm] [Phorm:] Urgent: PHORM, Headers and HTTP POSTs

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 16 May 2004 09:52:00 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#4041) Urgent: PHORM, Headers and HTTP POSTs 
            <http://www.phorm.com/support/?rev=4041> 
  AUTHOR:   Rainer 
  DATE:     May 16, 2004 at 5:52 a.m. EST 

Hi ALL, 

I need to get some general help here. 

I'm using phorm and every functions are working well. However, I need to get 
phorm to send a http header (simulated form post) with a script simular to the 
one below via several config pages: 

include('./cHTTP.php'); 
$http = new cHTTP(); 

$pem2 = $PHORM_FROM; 

$http->clearFields(); // -- clear all fields 

$http->addField ( 'email' , $pem2 ); 
$http->addField ( 'first_name' , $first_name ); 
$http->addField ( 'last_name' , $last_name ); 
$http->addField ( 'list_id' , '3' ); 
$http->addField ( 'is_welcome' , '1' ); 
$http->addField ( 'Submit' , 'OK' ); 
$http->addField ( 'coreg_redirect' , '' ); 

$http->postPage("http://www.remotedomain.com/subscribe.php";); 

This DOES work well and I can remotely add the data to another remote program. 
However, I CAN't post this several times in a row, via several config files. 
No error message, but it seems the first simulated http header is being send 
but NOT the second one. 

This problems is with any of the http post programs I have tested. I think 
perhaps phorm is NOT doing a refresh(?) where perhaps the header get a reset 
-- something like that. Any idea how I can send at least two different headers 
to single remote site? It seems that a simulated http post program (php) DOES 
not work 100% the same as one form posted from a form. Again, single http 
posts are ok. 

Any help and insights would be very much appreciated. 

Thanks/Rainer 

PS. Perhaps someone has a multi-header post script? 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Urgent: PHORM, Headers and HTTP POSTs