Announcement

Collapse
No announcement yet.

HTTP Post

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Post

    Can you tell how I use HTTP post in efs? I need to send a signal to the computer that will perform order execution at a specific point.

    Thanks

    Ben
    Tony Gof

  • #2
    the HTTP post command in efs allows you to pass information to a web site or pull information (files) from that site. I have, for example, pulled txt (CSV) data from servers then used that data in my efs for analysis and I've "pushed" data to a php script to add/update databases or other apps.

    Think of this as an alternate to the FILE functions. These are still files or commands you open/read/create/edit on a web server file system.

    By "calling" or "Pushing" data to something like PHP (or others) allows you to create apps/scripts on your server to do things - like fire orders.

    Calling an http command with parameters in the command text allows you to "fire" actions or instances of trade execution.

    Examples
    PHP Code:

    var Adata = new HTTP("http://www.yoursite.com/yourdata.txt");
    /* This call tries to open the file you select.  Now the Adata variable holds the data for each line in the file.  If there is not file there, it should return "null".

    Think of Adata as simply a file pointer now.  Test it for "null" and Adata.length, then read the file into efs.
    */


    var Pushdata = new HTTP("http://www.yoursite.com/addrecord.php?len=20");
    //  in this case I'm passing a parameter to the php script. 
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment

    Working...
    X