[FONT="Courier New"]
file.csv
|
|
|
|
------------> Client
If the client accesses csv file direct as URL
data is interpreted by dll without error
file.csv
|
|
PHP SITE
|
| There is NO html formatting. The response must be strictly data, 1 line only.
|
------------> Client
Causes stack corruption at client of
char array doing strcat of line from Web object
[/FONT]
I have a third party api that i need to get data from an external server. I don't want to write custom tcpip code for communications, html is a perfect cheap solution.
I can access the csv file directly from the server as a URL without incident, but need to perform different services for the client based on the request. Access to the csv file is only one such request, there are control features that must be performed.
If the PHP script reads and echos the contents of the csv file to the client a stack corruption occurs on the communications dll.
I don't have access to debugging tools for the dll, the only conclusion I can think of is that the PHP script is not NULL terminating the character string when echoing the response to the client and the 1024-1 byte char array buffer is being overrun.
The csv file has 20 elements at less than 150 bytes total.
If any one can please point me in the right direction I would be most appreciative.
for now I have a less than desirable workaround which limits my control path to integer responses and csv file access directly from URL. This requires me to creat additional csv files for control data to be passed out of band rather than in band to the client request.
Thanks in advance
John McGlaughlin