For a Sunday afternoon, something simple.

I need to pass some name/value pairs to another site (actually to the Bank of Americas' settleup branded site) for credit card processing. They (BofA) requires it come at them as a POST. Now I have to create the form (no problem) and before I send them I want to make sure I get some back. The process BofA uses is to require the fields with their own names on them (fair enough). And they return any fields they don't recognize. (Again fair enough.) Now I would normally bundle up the name/value pairs and attach them to the address as a GET. BofA is refusing to recognize this simple technique.

Question, how is the POST header et.al sent?   If it's a GET I would do this, which they don't like.
print redirect(-url => "https://cart.bamart.com/payment.mart?ioc_merch +ant_id=$ioc_merchant_id&ioc_order_total_amount=30.00&ecom_billto_post +al_name_first=$pffname&ecom_billto_postal_name_last=$pflname");
and etc. etc. What do I do to make this a POST instead of a GET?

Thanks

UR

janitored by ybiC: minor format tweaks, for legibility, retitle from "something simple" for improved search results


In reply to How to send HTTP POST request? by UncleRon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.