cURL appears to be not working
<p>I am trying to find out what my completed URL looks like when sending my xml file as a PARAM using cURL. However, I'm not seeing what cURL is creating for me to send to my java servlet on my apache tomcat server.</p>

<p>Any HELP/DIRECTION would be greatly appreciated.  Thank you.  </p>

<p>Here are my specs:</p>

<p>My $data:</p>

<pre><code>    object(SimpleXMLElement)#1 (5) {
  ["version"]=&gt;
  string(3) "2.0"
  ["orderNo"]=&gt;
  string(37) "sfly.000020513524-7001536_28935-tb.33"
  ["orderDate"]=&gt;
  string(23) "2012-09-21 09:52:53 PDT"
  ["processing"]=&gt;
  object(SimpleXMLElement)#2 (1) {
    ["statusCallback"]=&gt;
    string(79) "http://orderfulfillment.shutterfly.com/ogateway-test/status/sfly/xpressdocs/
        "
  }
  ["suborders"]=&gt;
  object(SimpleXMLElement)#3 (1) {
    ["suborder"]=&gt;
    object(SimpleXMLElement)#4 (7) {
      ["suborderNo"]=&gt;
      string(5) "51917"
      ["deliveryEstimate"]=&gt;
      object(SimpleXMLElement)#5 (2) {
        ["earliest"]=&gt;
        string(23) "2012-10-01 00:00:00 PDT"
        ["latest"]=&gt;
        string(23) "2012-10-05 00:00:00 PDT"
      }
      ["greeting"]=&gt;
      object(SimpleXMLElement)#6 (2) {
        ["line1"]=&gt;
        string(45) "Ordered for you by Andrew Mullen on 09/21/12."
        ["line2"]=&gt;
        string(61) "Save 20% on Holiday Cards November 20 - 30 at Shutterfly
                "
      }
      ["shipAddr"]=&gt;
      object(SimpleXMLElement)#7 (8) {
        ["name"]=&gt;
        string(12) "burkina faso"
        ["address1"]=&gt;
        string(17) "1234 burkina road"
        ["address2"]=&gt;
        object(SimpleXMLElement)#9 (0) {
        }
        ["city"]=&gt;
        string(4) "yako"
        ["region"]=&gt;
        string(3) "R21"
        ["postCode"]=&gt;
        object(SimpleXMLElement)#10 (0) {
        }
        ["countryCode"]=&gt;
        string(2) "BF"
        ["countryName"]=&gt;
        string(12) "Burkina Faso"
      }
      ["shipMethod"]=&gt;
      string(7) "INTLSTD"
      ["additionalFulfillers"]=&gt;
      string(5) "false"
      ["items"]=&gt;
      object(SimpleXMLElement)#8 (1) {
        ["item"]=&gt;
        object(SimpleXMLElement)#11 (6) {
          ["itemNo"]=&gt;
          string(2) "36"
          ["sku"]=&gt;
          string(13) "6X8FLATCARD06"
          ["description"]=&gt;
          string(39) "6x8 Stationery Card - Stacy Claire Boyd"
          ["quantity"]=&gt;
          string(1) "1"
          ["product"]=&gt;
          object(SimpleXMLElement)#12 (1) {
            ["stationery"]=&gt;
            object(SimpleXMLElement)#14 (6) {
              ["formFactor"]=&gt;
              string(3) "6x8"
              ["paperFinish"]=&gt;
              string(5) "MATTE"
              ["orientation"]=&gt;
              string(9) "LANDSCAPE"
              ["image"]=&gt;
              object(SimpleXMLElement)#15 (1) {
                ["location"]=&gt;
                string(130) "http://orderfulfillment.shutterfly.com/fulfillment-test/image/1200/000020513524-7001536_28935--164044--315625--canvas.jpg
                                "
              }
              ["boc"]=&gt;
              object(SimpleXMLElement)#16 (1) {
                ["location"]=&gt;
                string(130) "http://orderfulfillment.shutterfly.com/fulfillment-test/image/1200/000020513524-7001536_28935--164044--315626--canvas.jpg
                                "
              }
              ["copyright"]=&gt;
              object(SimpleXMLElement)#17 (1) {
                ["text"]=&gt;
                string(13) "6X8FLATCARD06"
              }
            }
          }
          ["envelopes"]=&gt;
          object(SimpleXMLElement)#13 (1) {
            ["envelope"]=&gt;
            object(SimpleXMLElement)#18 (2) {
              ["toAddress"]=&gt;
              object(SimpleXMLElement)#19 (10) {
                ["font"]=&gt;
                object(SimpleXMLElement)#21 (2) {
                  ["fontName"]=&gt;
                  string(5) "Arial"
                  ["fontSize"]=&gt;
                  string(2) "12"
                }
                ["name"]=&gt;
                string(10) "FPO Tester"
                ["companyTitle"]=&gt;
                object(SimpleXMLElement)#22 (0) {
                }
                ["address1"]=&gt;
                string(16) "PSC 812 Box 2640"
                ["address2"]=&gt;
                object(SimpleXMLElement)#23 (0) {
                }
                ["city"]=&gt;
                string(3) "FPO"
                ["region"]=&gt;
                string(2) "AE"
                ["postCode"]=&gt;
                string(5) "09627"
                ["countryCode"]=&gt;
                string(3) "USA"
                ["countryName"]=&gt;
                string(24) "United States of America"
              }
              ["fromAddress"]=&gt;
              object(SimpleXMLElement)#20 (10) {
                ["font"]=&gt;
                object(SimpleXMLElement)#24 (2) {
                  ["fontName"]=&gt;
                  string(5) "Arial"
                  ["fontSize"]=&gt;
                  string(2) "12"
                }
                ["name"]=&gt;
                string(13) "Andrew Mullen"
                ["companyTitle"]=&gt;
                object(SimpleXMLElement)#25 (0) {
                }
                ["address1"]=&gt;
                string(22) "2333 W. El Moro Circle"
                ["address2"]=&gt;
                object(SimpleXMLElement)#26 (0) {
                }
                ["city"]=&gt;
                string(4) "Mesa"
                ["region"]=&gt;
                string(2) "AZ"
                ["postCode"]=&gt;
                string(5) "85202"
                ["countryCode"]=&gt;
                string(3) "USA"
                ["countryName"]=&gt;
                string(24) "United States of America"
              }
            }
          }
        }
      }
    }
  }
}
</code></pre>

<p>My $url = 'http://melinda.xpressdocs.com/PostHandler';</p>

<p>Here is my code:</p>

<pre><code>    function postToUrl($url, $data) {

    $post = curl_init();

    curl_setopt($post, CURLOPT_URL, $url);
    curl_setopt($post, CURLOPT_POST, 1);
    curl_setopt($post, CURLOPT_POSTFIELDS, $data);
    curl_setopt($post, CURLOPT_RETURNTRANSFER, 1);

    $value = curl_getinfo($post);
    var_dump($value);
    exit;

    $result = curl_exec($post);

    curl_close($post);
}
</code></pre>

<p>Results of var_dump:</p>

<pre><code>    array(20) {
  ["url"]=&gt;
  string(42) "http://melinda.xpressdocs.com/PostHandler/"
  ["content_type"]=&gt;
  NULL
  ["http_code"]=&gt;
  int(0)
  ["header_size"]=&gt;
  int(0)
  ["request_size"]=&gt;
  int(0)
  ["filetime"]=&gt;
  int(0)
  ["ssl_verify_result"]=&gt;
  int(0)
  ["redirect_count"]=&gt;
  int(0)
  ["total_time"]=&gt;
  float(0)
  ["namelookup_time"]=&gt;
  float(0)
  ["connect_time"]=&gt;
  float(0)
  ["pretransfer_time"]=&gt;
  float(0)
  ["size_upload"]=&gt;
  float(0)
  ["size_download"]=&gt;
  float(0)
  ["speed_download"]=&gt;
  float(0)
  ["speed_upload"]=&gt;
  float(0)
  ["download_content_length"]=&gt;
  float(-1)
  ["upload_content_length"]=&gt;
  float(-1)
  ["starttransfer_time"]=&gt;
  float(0)
  ["redirect_time"]=&gt;
  float(0)
}
</code></pre>
