B
B
Bogdan Pasechnik2012-03-02 11:44:22
1C-Bitrix
Bogdan Pasechnik, 2012-03-02 11:44:22

Question about the integration of the store with 1C

Based on the article, I implemented an exchange with the site. 1C logs in, receives a cookie and logs in under it to upload goods to the site. And then a problem arose.
>>> Then "1C: Enterprise" with requests with parameters like
http://<site>/<path> /1c_exchange.php?type=catalog&mode=file&filename=<file name>
uploads exchange files to the site in CommerceML 2 format, sending the contents of the file or part of it in the form of POST.

1C comes to this address. The filename field contains the name of the file. And where is the file itself, I can not understand. The $_FILES array is empty... Please tell me what I'm doing wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stdit, 2012-03-02
@taral

Try this: $postdata = file_get_contents("php://input");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question