I am a web developer, and I am confused.
Trying to make use of sprint.com's SNPP Server , snpp.messaging.sprint.com.
I look up SNPP in 40 different places. It says its simple. It says you connect on Port 444. Simple.
Here's Sprint's super clear, authoritative 8 page document on the subject.
In this SO answer , David Brown explains how this is very simple and (almost) exactly how to do it.
So... my only question is... how do I connect?
Maybe i'm being totally dumb... but can I connect via a web request to that port? Do I use a particular HTTP verb? Or is it some lower lever request that I have to make from my web server?
I feel very dumb but i'm actually quite stumped.
You'll have to open a TCP socket to port 444. How to do that depends on the language you're using, for example: fsockopen in PHP, the socket module in Python or system.net.sockets.socket in .net. Then you proceed to send the lines from the response, ending each with a line feed ( \\n
). If you'd like, you can play with the protocol without having to program a client using Telnet in Windows or netcat in Linux/Unix. Just run the program with server/port as arguments, depending on which you use separated by a colon ( :
), as in the original post, or a whitespace.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.