SMSGateway som kræver HTTP-Request
Hej,jeg har fået tilsendt noget info fra Unwire.dk, som leverer en SMSGateway. For at modtage en SMS igennem dem, skal jeg stille en URL til rådighed, men jeg forstår ikke helt hvad jeg skal gøre, for at få det til at virke. Dette er hvad de skriver:
"When UnWire’s gateway receives an SMS it will - based on the keyword/mediacode in the message - fetch the content to be returned to the subscriber from an URL using a http GET request. The CP must respond with a document – "Content-type: text/plain" (no html tags) - containing a simple text string with the parameters as described in [3.2]. The timeout for the
response is 10 seconds.The URL requested from UnWire is defined by the CP, and could typically be “http://www.contentprovider.com/servlet/unwireservlet” or “http://www.cp.com/cgi”.
Example as in the illustration above:
1. TDC subscriber “4512345678” sends message “quiz a” to UnWire.
2. UnWire receives the message and sends an http-request to the CP ‘owning’ the mediacode “quiz”:
http://www.cp.com/cgi?text=quiz+a&sender=4512345678&smsc=tdc&session
id=4512345678:20020301123710&appnr=1231
3. CP returns the content to UnWire in a document containing a header and a simple text string with the required parameters:
Content-type: text/plain price=p4&type=text&text=Your+answer+was+incorrect.+Try+again+tomorro
w&smsc=tdc&to=4512345678
4. UnWire sends the message “Your answer was incorrect. Try again tomorrow” to the subscriber “4512345678” and charges him/her kr. 4,-.
Er ikke med på, hvad jeg skal gøre. Any ideas ?