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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.