Announcement

Collapse
No announcement yet.

forward $_POST to another server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • forward $_POST to another server

    if i received a http post on my server

    and want to resend/forward the $_POST to another server

    is there an easy way to do this?

    i thought of using CURL and convert the $_POST to
    raw data string like "data1=something&data2=3424"
    and set that for CURLOPT_POSTFIELDS

    also is there a php function where i can convert $_POST
    to raw data string in one shot? instead of concat each with for loop

  • #2
    Why not convert the POST data to an URL string and call an URL on the other server with the appended GET data?

    Comment


    • #3
      Originally posted by superbunny
      also is there a php function where i can convert $_POST
      to raw data string in one shot? instead of concat each with for loop
      You could try serialize() and unserialize()..

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X