D
D
Dmitry Richter2014-07-04 16:06:21
PHP
Dmitry Richter, 2014-07-04 16:06:21

How to correctly implement the request?

In general, I have a php code, I need to place an order, that is, transfer a certain number of bytes to the site page, I don’t know how to implement this correctly, can anyone tell me?

POST https://ip:port/common_api/1.0/create_order HTTP/1.1
Signature: <...>
Content-Type: application/x-www-form-urlencoded
Content-Length: 156
phone=89123456789&source=SOURCE&source_time=20120501100000&dest=DEST&customer=CUSTOMER&
comment=COMMENT&crew_group_id=1&uds_id=1&tariff_id=3&is_prior=false&source_lon=53.147836&source_lat
=56.896817&dest_lon=53.226775&dest_lat=56.845452

ip - 89.18.139.138, port - 22457
and there is another key:

llksdjhKJHKJjhjdaf

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Heafy, 2014-07-04
@Heafy

Perhaps this question and answer will suit you: How to send an HTTP request using the POST method to a URL using PHP?

S
stas, 2014-07-04
@stas3572

curl
www.php.net/manual/ru/book.curl.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question