AltME: Web

Messages

amacleod
Will try it, thanks Peter. Did not know about it...it will come in handy...

Rebolek
I have trouble reading data from CGI using POST on R3. I try to upload an image using POST then on server I use data: read system/ports/input to get the POST data, but it seems that the data are truncated. There doesn't seem to be some specific boundary where the data are truncated, I'm uploading images in range from cca 15-200kB, the resulting data are few hundreds to few tens of kB long, so there's no artificial boundary like 32'000 bytes. Anyone has any experience with getting data from POST?
PeterWood
Is that with Rebol 2 or 3 Bolek?
Rebolek
Rebol3
The most frustrating is, that the same file will throw different results. Right now I'm testing with small 3,5kB PNG file, sometimes I get full file, sometimes just few hundred bytes...there's no pattern what the result will be.
Bo
Are you sure that the PNG file you are reading is complete and not being overwritten at the source (like from a webcam)?
Rebolek
No, it's complete. It's file on local computer I made just for testing.
Bo
I see you posted a question on SO and it looks like there's an answer.

Rebolek
Yes, I'm going to try it, I hope it would work, seems like it should.
Rebolek
So it doesn't work for me. Reading no data from system/ports/input does not throw an error but waits for data forever (at least it looks like forever, it has been five minutes already so it's useless as an image uploader).
Bo
Have you tried checking the system timeout for network reads?

sqlab
Where are bytes missing, only at the end or also middle in the image?
Bo
I'm pretty sure they are only missing at the end.

Rebolek
Yes, at the end. I will try putting some simple PHP uploader on the same server to make sure it's not Apache's fault and let you know about the results.

Cyphre
Just a note about the CGI/POST issue. I've checked with Reboek a bit  on that and it looks the CGI mode is not yet fully implemented in R3 nor tested  (there are some issues on  both Linux and Win platforms). Someone interested in that feature needs to fix that ;-)
Rebolek
To be precise, someone with interest in that feature AND C-knowledge :-)

Ladislav
https://en.wikipedia.org/wiki/Rebol is currently under attack by a disruptive editor
Gregg
Is anyone chatting with him to see why all the citation requests are being added?
GiuseppeC
Hi Ladislav, Is there any way I could help ?

Ladislav
He is a problematic editor, trying to delete large parts of articles he dislikes. In this case, the Rebol article is innocent. I think that he found out I edited the article and wanted to show me "who is the boss there".
Other than that, there are at least two editors needed to revert his edits when he makes undesirable changes.

Last message posted 109 weeks ago.