Home AMX User Forum AMX Technical Discussion
Options

Get Text from url

Hi,

How can I fetch the data inside a text file located in a url.
For example the file is in http://www.somethinghere.com/sometext.txt

Thanks!

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    Does the text show up in your browser when you hit this URL? If so, then you can do a simple web page scrape. There are many examples of doing this here on the forum. Just search by Web Page and I'll bet you find one.

    In short the process is opening an IP Client to the URL and sending the GET command, spoofing how a browser does this. If you are curious get the program Wire Shark and watch your IP traffic when you run you browser. Then just spoof that on your Netlinx master and you'll have it.

    If, however, the file does not open in your browser you'll have more work to do. But here again, use wire shark to follow the IP traffic and you'll be able to recreate it in Netlinx.
Sign In or Register to comment.