If you need help, try to find the answer through the following path: `Help` in the console ⇒ [Red by Example](https://www.red-by-example.org/) ⇒ [Official Red Docs](https://github.com/red/docs/blob/master/en/SUMMARY.adoc) ⇒ [Rebol Core Manual](http://www.rebol.com/docs/core23/rebolcore.html ⇒ [Red Wiki](https://github.com/red/red/wiki ⇒ Net search "redlang + your-question" ⇒ Ask us, we are here to help!
test
Red []
from-timestamp: func [ ts ][
return 1970-01-01 + to time! round/down ts / 1000
]
hessian-proxy: make object! [
run: func[ method ][
data: rejoin [to-binary "c^A^@m" (at to-binary length? method 7) to-binary method to-binary "z"]
result: write http://hessian.caucho.com/test/test compose [
post [
Host: "hessian.caucho.com"
Content-type: "application/x-hessian"
Accept-Encoding: "identity"
User-Agent: "rebol-hessian/0.0.1"
Accept-Charset: "*"
]
(data)
]
print to-binary result
probe from-timestamp to-integer copy/part at result 5 8
]
]
hessian-proxy/run "replyDate_1"
>rebol3 hessian-red.red
#{72010064000000D04B9284B87A}
8-May-1998/9:51:31
> red-latest hessian-red.red
#{
72010066530004636F64655300154E6F537563684D6574686F64457863657074
696F6E5300076D65737361676553002B54686520736572766963652068617320
6E6F206D6574686F64206E616D65643A20706C79446174655F317A7A7A
}
*** Script Error: cannot MAKE/TO integer! from: "S^@^DcodeS"
*** Where: to
*** Near : probe from-timestamp to-integer copy/part
*** Stack: run probe from-timestamp to-integer
{r^A^@fS^@^DcodeS^@^UNoSuchMethodExceptionS^@^GmessageS^@+The service has no method named: plyDate_1zzz}
Red []
from-timestamp: func [ ts ][
return 1970-01-01 + to time! round/down ts / 1000
]
hessian-proxy: make object! [
run: func[ method ][
; probe data: rejoin [to-binary "c^A^@m" (to-binary at form to-hex length? method 8) to-binary method to-binary "z"]
probe data: rejoin [to-binary "c^A^@m" (at to-binary length? method 3) to-binary method to-binary "z"]
result: write http://hessian.caucho.com/test/test compose [
post [
Host: "hessian.caucho.com"
Content-type: "application/x-hessian"
Accept-Encoding: "identity"
User-Agent: "rebol-hessian/0.0.1"
Accept-Charset: "*"
]
(data)
]
probe "==========="
print to-binary result
probe from-timestamp to-integer copy/part at result 5 8
]
]
hessian-proxy/run "replyDate_1"
Red []
data: #{6301006D000B7265706C79446174655F317A}
probe result: write http://hessian.caucho.com/test/test compose [
post [
Host: "hessian.caucho.com"
Content-type: "application/x-hessian"
Accept-Encoding: "identity"
User-Agent: "rebol-hessian/0.0.1"
Accept-Charset: "*"
]
(data)
]