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?
Guy
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?
Guy
maybe your base64 encoded string is wrong.. ?
PHP's base64_decode decodes it to the string "(1 |?b?=??".. Doesn't look very well :confused:
Thomas
Thomas
Where can I get a good base64 decode/encode?
Thanks,
Guy
Thanks,
Guy
For testing, you can use this website: http://www.datoware.co.uk/base64.php
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:
it's a radasm project. (bah, why cant i attach RAR's)
enjoy :alright:
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.
Regrard.
Guy
But I still get an access forbidden, I don't know what I do wrong.
Anyway thank you all for your answers.
Regrard.
Guy