Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Unfortunately for most "programmers", they resort to relying on modules for everything: Here's what I did to get this working in the past... but I must warn you.. that if US Cellular changes their page... it could break the script.

If you view the HTML of US Cellular's SMS Gateway page (found on their website), you'll notice a random session number. You'll need this when you actually submit the request to broadcast the SMS.

Second, you'll simply perform 2 "GET" or "POST" requests, but do whatever the form on their site does.

Third, ensure you will pass the proper variables... such as the check box saying you have read the terms

Fourth, be sure to set a referrer and user agent string in your script for the request to match typical behavior of any normal web surfer... such as a Browser user agent string found for IE, Firefox, et cetra.

Fourth, don't ruin this for everyone. If they detect a tonne of traffic or abuse, they might decide to redesign their SMS interface to require a captcha... preventing you from developing a script and using it.

Fifth, if you do abuse the system, I WILL HUNT YOU DOWN AND REPROGRAM YOU AND YOUR COMPUTER.

If everyone is wondering why I didn't provide a script, it's because I see these things abused all the time... and if you are serious about using for personal use (instant notification of a successful telnet session... for example)... then you are definately smart enough to learn to use the LWP::Simple methods.. which are all you really need for this small task.


In reply to Re^2: How to send text msg with perl?? by maietta
in thread How to send text msg with perl?? by Niner710

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found