<?php

$cr_id = "5";

$req = "
<xml>
  <contractor>
    <auth>
      <session_id>949734773drt319d05f415ehrzfnd05f415ehrz</session_id>
      <passphrase>13d910334a78180313s83g</passphrase>
    </auth>
    <operation>UPD</operation>
    <debug_on>NO</debug_on>

    <cr_id>" . $cr_id . "</cr_id>
    <cr_eid>AN20180228</cr_eid>
    <cr_sid>HH2001</cr_sid>
    <hq_id></hq_id>
    <vht_id></vht_id>
    <vht_id_inv></vht_id_inv>
    <cr_vh_sign>HH-XX 301</cr_vh_sign>
    <cr_imei>8123456782222</cr_imei>
    <cr_mobile_pda>0172123456782222</cr_mobile_pda>
    <cr_maxweight>22</cr_maxweight>
    <cr_outlay>222</cr_outlay>
    <cr_locationzipcode>22850</cr_locationzipcode>
    <cr_available></cr_available>
    <cr_availabletime></cr_availabletime>
    <cr_occupied></cr_occupied>
    <cr_logintime></cr_logintime>
    <cr_gps_long></cr_gps_long>
    <cr_gps_lat></cr_gps_lat>
    <cr_gps_time></cr_gps_time>
    <cr_gps_type></cr_gps_type>
    <cr_mobile_cell></cr_mobile_cell>

    <company>
      <cmp_type>0</cmp_type>

      <cmp_comp>AN_031</cmp_comp>
      <cmp_comp2>AN_032</cmp_comp2>
      <cmp_comp3>AN_033</cmp_comp3>
      <cmp_comp4>AN_034</cmp_comp4>

      <ad_street>Ulzburger Str.</ad_street>
      <ad_hsno>21</ad_hsno>
      <ad_zipcode>22850</ad_zipcode>
      <ad_city>Norderstedt</ad_city>
      <ad_country>DE</ad_country>

      <cmp_iln>AN03ILN12345678</cmp_iln>
      <cmp_tax_idno>AN03ST4567</cmp_tax_idno>
      <cmp_stax_idno>AN03UST4567</cmp_stax_idno>

      <cmp_bank>HASPA</cmp_bank>
      <cmp_bankno>200 505 52</cmp_bankno>
      <cmp_bankacc>1234 44 67 89</cmp_bankacc>
      <cmp_iban>DE45200505501234446789</cmp_iban>
      <cmp_swift>12345678902221</cmp_swift>

      <cmp_logo>an03_logo.jpg</cmp_logo>
      <cmp_logo_width>330</cmp_logo_width>
      <cmp_logo_height>300</cmp_logo_height>

      <cmp_remark>BEMERKUNG_AN03</cmp_remark>
      <cmp_remark2>BEMERKUNG_AN03</cmp_remark2>
      <cmp_match>BUZZWORDS HERE AN03</cmp_match>
      <cmp_match2>TEST AN03</cmp_match2>

      <cmp_newsletter>0</cmp_newsletter>
      <cmp_pda_usage>1</cmp_pda_usage>
    </company>

    <user>
      <usr_name>Name21</usr_name>
      <usr_firstname>Vorname21</usr_firstname>
      <usr_birthdate>2000-04-21</usr_birthdate>

      <usr_email>test22@test21.de</usr_email>
      <usr_inv_email>inv.test21@test21.de</usr_inv_email>
      <usr_phone>040 456789021</usr_phone>
      <usr_phone2>0172 123456721</usr_phone2>
      <usr_fax>040 456789022</usr_fax>

      <usr_account>an_test_03</usr_account>
      <usr_password>antest123421</usr_password>
    </user>

    <couriervehicles>
      <couriervehicle>
        <crvh_operation>INS</crvh_operation>
        <crvh_id></crvh_id>
        <crvh_sort>20</crvh_sort>
        <crvh_sid>HH1007</crvh_sid>
        <crvh_comm_no>HH1001C</crvh_comm_no>
        <crvh_vh_sign>HH ZZ 34</crvh_vh_sign>
        <crvh_vh_name>Mercedes</crvh_vh_name>
        <crvh_licence_date>2010-10-31</crvh_licence_date>
        <crvh_env_badge_level>5</crvh_env_badge_level>
        <crvh_prov>7.5</crvh_prov>
        <crvh_payload>4000</crvh_payload>
        <crvh_totalweight>9000</crvh_totalweight>
        <crvh_length>7</crvh_length>
        <crvh_width>2.5</crvh_width>
        <crvh_height>2.5</crvh_height>
        <crvh_position>8</crvh_position>
        <crvh_aperture_height_side>2</crvh_aperture_height_side>
        <crvh_aperture_height_rear>3</crvh_aperture_height_rear>
        <crvh_insurance_name>Vers.</crvh_insurance_name>
        <crvh_insurance_no>VS0123456789</crvh_insurance_no>
        <crvh_remark>Bemerk. 1</crvh_remark>
        <crvh_filter>,MM,</crvh_filter>
        <crvh_service>6</crvh_service>
        <crvh_group>,7,</crvh_group>
        <crvh_special>1</crvh_special>
        <crvh_corporate_identity></crvh_corporate_identity>
        <crvh_funding_state>1</crvh_funding_state>
        <crvh_funding_final_installment>2010-09-29</crvh_funding_final_installment>
        <crvh_funding_residual_value>3.5</crvh_funding_residual_value>
        <crvh_pda_usage>1</crvh_pda_usage>
        <crvh_system_fee>1</crvh_system_fee>
        <crvh_freetext_1>Freitext 1</crvh_freetext_1>
      </couriervehicle>

      <couriervehicle>
        <crvh_operation>DEL</crvh_operation>
        <crvh_id>5</crvh_id>
      </couriervehicle>

      <couriervehicle>
        <crvh_operation>UPD</crvh_operation>
        <crvh_id>6</crvh_id>
        <crvh_sort>22</crvh_sort>
        <crvh_sid>HH1006</crvh_sid>
        <crvh_comm_no>HH1002</crvh_comm_no>
        <crvh_vh_sign>HH XY 89</crvh_vh_sign>
        <crvh_vh_name>Mercedes Vito</crvh_vh_name>
        <crvh_licence_date>2010-09-28</crvh_licence_date>
        <crvh_env_badge_level>3</crvh_env_badge_level>
        <crvh_prov>7.5</crvh_prov>
        <crvh_payload>4400</crvh_payload>
        <crvh_totalweight>9900</crvh_totalweight>
        <crvh_length>7</crvh_length>
        <crvh_width>2.5</crvh_width>
        <crvh_height>2.5</crvh_height>
        <crvh_position>8</crvh_position>
        <crvh_aperture_height_side>2</crvh_aperture_height_side>
        <crvh_aperture_height_rear>3</crvh_aperture_height_rear>
        <crvh_insurance_name>Vers.</crvh_insurance_name>
        <crvh_insurance_no>VS0123456789</crvh_insurance_no>
        <crvh_remark>Bemerk. 1</crvh_remark>
        <crvh_filter>,MM,</crvh_filter>
        <crvh_service>6</crvh_service>
        <crvh_group>,7,</crvh_group>
        <crvh_special>1</crvh_special>
        <crvh_corporate_identity></crvh_corporate_identity>
        <crvh_funding_state>1</crvh_funding_state>
        <crvh_funding_final_installment>2010-09-29</crvh_funding_final_installment>
        <crvh_funding_residual_value>3.5</crvh_funding_residual_value>
        <crvh_pda_usage>1</crvh_pda_usage>
        <crvh_system_fee>1</crvh_system_fee>
        <crvh_freetext_1>Freitext 1</crvh_freetext_1>
      </couriervehicle>

    </couriervehicles>

  </contractor>
</xml>";

$reqEncoded = urlencode($req);
?>


<html>

<head>

</head>

<body>

  <form name="test_request" action="https://mps1.assecutor.de/test_tp/service/contractor_request.php" method="post">
  
    <input type="hidden" name="contractorReq" value="<?php echo $reqEncoded ?>">

    <input type="submit" value="Senden POST">


  </form>

</body>

</html>
