Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook



The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic

Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.

If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.

Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.

Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less


  • Filter
  • Time
  • Show
Clear All
new posts

  • http_post

    Hello All,

    I need help on the http_post function please. I am not sure if this is the correct function for the values I need to send as I am not too clued up with this one.
    Basically, I need to send values to their server in order for them to send out an sms or bulk sms'es
    In the example they wanted the following values:
    Type of post: single or bulk

    They did send me an example of the values to be posted and mentioned I should use a http_post function for this:
    HTML Code:
    <tr><td height="10"></td></tr>
    <form method="POST" action="">
    <input type="hidden" name="Type" size="20" value="Bulk">
    <Table border=1>
    <tr><td colspan="2">Bulk SMS</td></tr>
    <tr><td>Username</td><td><input type="text" name="Username" size="20"></td></tr><!--You username -->
    <tr><td>Password</td><td><input type="text" name="Password" size="20"></td></tr><!--You Password -->
    <tr><td>Number</td><td><input type="text" name="Numbers" size="20"></td></tr><!--Numbers in a comma seperated string eg: 0832297941,0832297911-->
    <tr><td>Message</td><td><input type="text" name="Message" size="20"></td></tr><!--Your message no longer than 160 chars -->
    <tr><td>SendDate</td><td><input type="text" name="SendDate" size="20" value="2/Nov/2005"></td></tr><!--date in the format dd/mmm/yyyy -->
    <tr><td>SendTime</td><td><input type="text" name="SendTime" size="20" value="21:00"></td></tr><!--24 hour time format HH:mm -->
    <tr><td></td><td> <input type="submit" value="Submit" name="B1"></td></tr>
    <!--It will return the a "true" or "false" and then a description eg: "False, your username and password do not match!" or "True, Successfully sent"
    Any asistance with this will be much appreciated.
    Last edited by AaronBBrown; 10-24-2006, 12:42 PM.

  • #2
    Re: http_post

    I haven't done this yet myself - but I will have to soon using http_post2, so I'm interested in this topic.

    Result as P = HTTP_POST( URL as C [, Body as C [, Cookie as C [, Port as N [, Timeout as N, [ Show_Before_Send as L [, Validate_SSL_Certificate as L ]]]]]] )

    It looks like they have sent you a sample of what the body of the submission should look like. You need to construct a similar string, substituting variables where the body contains submission-specific information

    So if my user name is "Finian" and password is "hello" then I can format a text variable similar to the example and substitute my name and password (and any other values) into the string. The following is a very primitive attempt to communicate with the server in question. Because the body is incomplete and the submitted information is not valid, the script can't work, but it does generate a response from the server.

    dim user as c;dim pass as c
    user = "Finian";pass = "hello"
    dim postbody as c
    dim posturl as c
    posturl = ""   
    postbody = "</form>"\
    + Crlf() + "</td></tr>"\
    + Crlf() + "<tr><td height=\"10\"></td></tr>"\
    + Crlf() +"<td><tr>"\
    + Crlf() + "<form method=\"POST\" action=\"\">"\
    + Crlf() + "<input type=\"hidden\" name=\"Type\" size=\"20\" value=\"Bulk\">"\
    + Crlf() + "<Table border=1>"\
    + Crlf() + "<tr><td colspan=\"2\">Bulk SMS</td></tr>"\
    + Crlf() + "<tr><td>Username</td><td><input type=\"text\" name= '" + User + "' size=\"20\"></td></tr><!--You username -->"\
    + Crlf() + "<tr><td>Password</td><td><input type=\"text\" name='" + Pass + "' size=\"20\"></td></tr><!--You Password -->"
    'submit the information to the server
    response = http_post(posturl,postbody)
    'show the server response in a msg_box
    'write the server response to a file
    The http functions are documented, but just barely so. So there will likely be a lot of trial and error in this. There are also a bunch of functions that deal with processing URLs etc but I find it difficult impossible to determine how or whether they would/should be used in the context of these functions.


    • #3
      Re: http_post

      Thanks Lenny,

      Looks like this one is more intersting than I thought it would be.
      I am going to give this a go this evening, I will keep posting the progress on this.



      • #4
        Re: http_post

        Hello Lenny,

        In the end it was simpler than expected.
        This is what they were looking for.

        posturl = ""
        postbody = "type=bulk"+ "&" +"username=xxx"+"&"+"password=xxxx"+"&"+"number=0000000000"+"&"+"message=test from cms new post"+"&"+"sendDate=25/Oct/2006"+"&"+"sendTime=10:31"

        '--> END OF BODY

        ui_msg_box("",postbody) '-->message to user before sending http_post
        'submit the information to the server

        file.from_string("C:\commercial merchants\data\sms_server_reply\http_post_preview.txt",postbody)'--> record details of post before sending

        response = http_post(posturl,postbody)'-->the actual post to your server

        'show the server response in a msg_box
        'write the server response to a file
        file.from_string("C:\commercial merchants\data\sms_server_reply\http_post_response.txt",response.body)'--> record reply from your server to file

        Thanks for the help


        • #5
          Re: http_post

          Hello Lenny,

          I have another question please.
          I receive data from the sms server in this format:

          <table cellspacing="0" rules="all" border="1" id="DataGrid">
          <td>8903130</td><td>+27000000000</td><td>This sms directly from cms application. Walter</td><td>10/25/2006 11:54:07 AM</td><td>None</td><td>Sent</td>
          <td>8903131</td><td>+27000000000</td><td>This sms directly from cms application. Walter</td><td>10/25/2006 11:54:08 AM</td><td>None</td><td>Sent</td>

          Is there any way to get these values into a table from here?