Re: [BLACKBOX] Internet Files

From: [at]} <Wojtek>
Date: Sat, 13 Apr 2013 00:51:46 -0400

----boundary-LibPST-iamunique-509813595_-_-
Content-type: text/plain

Chris and Robert:

  I would suggest having a look at the BlackBox web server. Obviously, it
must be doing the right thing.

I am currently using the embedded web server named boa that calls my
executable according to the CGI rules (common gateway interface). In this
executable I am receiving the ASCII string from boa that arrives from the
net. This string is handled by boa, and then it ends up in my CGI
executable. In response, my executable is forming an ASCII text according
to the HTML syntax and I passes it back to boa, which in turn sends it
back to the net. It is a pretty messy process, though it is probably "as
simple as possible".

Having said all this, I personally would not recommend starting from
scratch. I certainly did not. I rather used a demo application that I
downloaded from Analog Devices. The app was sufficiently close to my needs
that I got a head start. I would recommend doing the same thing.

Hope it helps.

Wojtek


> Robert Campbell asked me to forward this message to the BlackBox mailing
> list for him:
>
> -------------------------------
> If I type the address "http://a.tile.openstreetmap.org/17/64377/40836.png"
> into a web browser I get to see a 256 * 256 pixel bitmap (which happens to
> be a map of my house which I added myself this Christmas, but that is all
> irrelevant).
>
> How would I write a BlackBox program to fetch this tile, and either turn
> it
> into an internal BlackBox bitmap, or save it directly as a .png file.
>
> I do use the FreeImage subsystem, so can handle bitmaps and .png files
> within BlackBox, but I have no idea how to start on the internet stuff.
>
> Maybe the answer is in the Comm SubSystem, which I have used (a long time
> ago) to communicate PC to PC over ethernet and over the USB?
>
> Regards
>
> Robert
> -------------------------------
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-509813595_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGZiaWRpcyBcZGVmZjB7XGZvbnR0YmwN
CntcZjBcZnN3aXNzIEFyaWFsO30NCntcZj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