|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I've been asked to use http post to send information from VOIP but I don't really understand what to do. I'd be greatful if anybody could give me any please.
Thanks Lucy |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Could you explain a bit more about what you are trying to do with the VOIP system?
|
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
The VOIP system is for a restaurant, enabling people to use the phone to place
an order for take-away. The person will press different numbers depending on what they want. When they've finished their order will be sent via HTTP POST to the restaurant. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
The person I need to create the HTTP POST for has said:
For each order that we receive through the IVR system, we will send a single HTTP POST request with a plain text body containing the order details. The server at your end will simply need to send this text to the printer. We will expect a 200 OK response from the server (the standard success response for HTTP). If we get any other response, or time out waiting for a response, we will make a single retry of the request. If the second attempt fails we will drop the order. I don't know if this s, but this is all the information I have |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Lucy4 wrote:
> The person I need to create the HTTP POST for has said: > > For each order that we receive through the IVR system, we will send a > single HTTP POST request with a plain text body containing the order > details. The server at your end will simply need to send this text to > the printer. > > We will expect a 200 OK response from the server (the standard success > response for HTTP). If we get any other response, or time out waiting > for a response, we will make a single retry of the request. If the > second attempt fails we will drop the order. > > I don't know if this s, but this is all the information I have You need to create a page that accepts a form value, they need to tell you the form field name. You then store this value in a database, or have it emailed to a recipient, where you then print it. You will need to do some coding here, what server languages does your server support? Steve |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
The server supports PHP, but I'm afraid it's PHP 4 although I do have access to a server with PHP 5. Also it has a MySQL database
|
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Lucy4 wrote:
> The server supports PHP, but I'm afraid it's PHP 4 although I do have access to a server with PHP 5. Also it has a MySQL database Either is fine, and having MySQL is good too. Dreamweaver should be able to do this with its built in Server Behaviours. I don't do PHP or MySQL myself, but the flow would be: Receive form field Insert into database The database table should use a timestamp field to you know when the order arrived. You will also want an auto ID field as your primary key. You will then need to make a page that lists the orders, for this you create the recordset, drag the timestamp onto the page and use a repeat region, make the timestamp a link, using the ID field as a paremeter. The page you just linked to will have a recordset that is filtered by the ID that was passed in the Querystring. All this page does is display the one column from the database that was passed from the IVR system. You then print the page. This should get you going in the right direction. Steve |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
Thanks for that, I'll look into exactly how to do that
|
|
![]() |
| Outils de la discussion | |
|
|