PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > HTTP POST
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
HTTP POST

Réponse
 
LinkBack Outils de la discussion
Vieux 13/06/2008, 17h57   #1
Lucy4
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut HTTP POST

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
  Réponse avec citation
Vieux 13/06/2008, 18h01   #2
SnakEyez02
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

Could you explain a bit more about what you are trying to do with the VOIP system?
  Réponse avec citation
Vieux 16/06/2008, 10h11   #3
Lucy4
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

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.

  Réponse avec citation
Vieux 17/06/2008, 13h13   #4
Lucy4
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

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

  Réponse avec citation
Vieux 17/06/2008, 13h42   #5
Dooza
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

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

  Réponse avec citation
Vieux 17/06/2008, 14h06   #6
Lucy4
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

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
  Réponse avec citation
Vieux 17/06/2008, 14h23   #7
Dooza
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

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
  Réponse avec citation
Vieux 17/06/2008, 15h18   #8
Lucy4
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP POST

Thanks for that, I'll look into exactly how to do that
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16078 seconds with 16 queries