The CONTENT part of the associative list which is created by calling world.Export on an HTTP-page randomly contains unexpected bytes (2 byte hexadecimal, followed by a linefeed/carriage return, then the actual content followed by another lf/cr and a "0").
Different web-pages result in different leading hexadecimal bytes.
Numbered Steps to Reproduce Problem:
1. Compile and run the snippet
2. Repeatedly use the Send_Test_URL-verb
3. Randomly, there will be unexpected additional bytes
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
Send_Test_URL()
var/http[] = world.Export("http://schnitzelnagler.farawayhost.com/ftest1.php?a=test")
if(!http)
usr << "Failed to connect."
return
var/F = http["CONTENT"]
if(F)
usr << html_encode(file2text(F))
Expected Results:
Predictable output with just the content of the website retrieved.
Actual Results:
Unpredictable output.
Does the problem occur:
Every time? Or how often? -> Random
In other games? n/a
On other computers? -> Tiberath does not seem to have this problem.
In other user accounts? ->Yes
When does the problem NOT occur? -> Never
Workarounds:
Kind of filter the content retrieved.
It'd be nice if there was another German DM user (preferably with the same ISP) that could test this out. It's possible that it might be an issue brought up by something your ISP is doing.