I'm trying to get to an HTTP server with my username and password but I always get the error 403 (access forbidden).

GetTemplate db "GET %s HTTP/1.0",0dh,0ah
db "Host: %s",0Dh,0Ah
db "Authorization: Basic KDENfKdifwekFD23nf==",0dh,0ah
db "Range: bytes=%lu-",0Dh,0Ah
db "User-Agent: Mozilla/3.01 (X11; I; AIX 2)",0Dh,0Ah
db "Connection: Close",0Dh,0Ah
db "Accept: /*,image/*,application/*,*/*",0Dh,0Ah,0dh,0ah,0

re: Authorization: Basic = base64 but I also tryed MD5 with no success.

Any idea why this thing is nor working?

Posted on 2002-07-11 15:00:59 by Guy
maybe your base64 encoded string is wrong.. ?
Posted on 2002-07-11 15:50:05 by savage
PHP's base64_decode decodes it to the string "(1 |?b?=??".. Doesn't look very well :confused:

Posted on 2002-07-11 15:52:58 by Thomas
Where can I get a good base64 decode/encode?

Posted on 2002-07-11 19:51:18 by Guy
For testing, you can use this website: http://www.datoware.co.uk/base64.php
Posted on 2002-07-12 01:22:05 by Qweerdy
here's a base64 encode/decode program i coded a while ago.

it's a radasm project. (bah, why cant i attach RAR's)

enjoy :alright:
Posted on 2002-07-12 05:53:32 by savage
You are right, my base64 routine was wrong. Thanks for your example Savage.

But I still get an access forbidden, I don't know what I do wrong.

Anyway thank you all for your answers.


Posted on 2002-07-12 08:36:31 by Guy