HTTP(S) SetHttpHeader, Status, Response

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Rinzwind
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

HTTP(S) SetHttpHeader, Status, Response

Post by Rinzwind »

-Basically anything that is missing to make those JSON libraries useful in real life...
-Also Crypto could use some more work. Encrypt/decrypt with easy string parameters. Luckily Walbus posted a decent one in the forums which would make a nice addition to PB!
-Speaking about HTTP... the base64encoder also encodes the ending NULL character which goes against any other base64 encoder (checked .NET and several online base64 encoder websites). At least the help file should mention this.
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: HTTP(S) SetHttpHeader, Status, Response

Post by kenmo »

Hi,
-Speaking about HTTP... the base64encoder also encodes the ending NULL character which goes against any other base64 encoder (checked .NET and several online base64 encoder websites). At least the help file should mention this.
I don't understand this one. You tell the Base64 functions how many input bytes to encode, so it's your choice to include a NULL or not.
Rinzwind
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: HTTP(S) SetHttpHeader, Status, Response

Post by Rinzwind »

Ok, then add a stringbase64encode, just like what happened with fingerprint incl encoding. Make it "basic" to use.
Post Reply