SOLVED rid ssl encoded html page of cryptic codes
Posted: Thu Jun 30, 2005 4:34 am
I need some help for this task:
I'm retrieving a html page over a connection and analyze it. The page comes out all right in a browser, but when I'm GETting it with PHP, there are new lines mixed into it, containing nothing but one out of these syllabilic codes:
fed, ffb, dde, 2b, 396, 397.
These make it difficult to analyze the code. I tried filtering them, but there might be more coming up, so I rather not hardcode them, but get rid of them at all.
At least, I'd like to know where they come from in the first place. Who can tell?
Here comes the gravy: Due to the page being .htaccess protected, I'm not fopen()-ing but use iniset to feign a browser, fsockopen a ssl connection with openssl loaded and compiled into my PHP, and use fputs to login with username and password.
I'm retrieving a html page over a connection and analyze it. The page comes out all right in a browser, but when I'm GETting it with PHP, there are new lines mixed into it, containing nothing but one out of these syllabilic codes:
fed, ffb, dde, 2b, 396, 397.
These make it difficult to analyze the code. I tried filtering them, but there might be more coming up, so I rather not hardcode them, but get rid of them at all.
At least, I'd like to know where they come from in the first place. Who can tell?
Here comes the gravy: Due to the page being .htaccess protected, I'm not fopen()-ing but use iniset to feign a browser, fsockopen a ssl connection with openssl loaded and compiled into my PHP, and use fputs to login with username and password.