seeing asp files in firefox
Larry Grover
lgrover at zoominternet.net
Fri Nov 11 05:14:13 UTC 2005
Kush Singh wrote:
> Lee Braiden wrote:
>
>> On Thursday 10 November 2005 23:21, Kush Singh wrote:
>>
>>
>>> How can one set firefox to view asp files?
>>>
>>
>>
>> Firefox doesn't view ASP files. Neither does IE. Web browsers are
>> clients, not servers, and ASP stands for Active Server Pages. In
>> other words, they run on the web server, and which translates them
>> into (X)HTML, which then gets sent to a browser. ASP is a microsoft
>> thing, and not all that great either; PHP is a more popular equivalent
>> that's popular on both Linux/Unix and Windows too.
>>
>>
>>
> Thanks Lee. But the problem is when i go to the URL
> www.cag.nic.in/home_page.asp or www.cag.nic.in the asp server script
> runs on the webserver (IIS or whatever) and outputs a html page which
> is passed as is to the firefox browser BUT the browser does not render
> it as a html page but rather as plain text. So i get to see the page as
> source text and not as a php/html page would be rendered by the browser.
> Kussh
The server is telling your browser that it is sending a plain text
file, and so your broswer is displaying the file as plain text. Your
browser is doing the right thing, the server is not.
You can verify this by using a packet capture tool, like ethereal. If
you capture the exchange between your browser and the web server while
you are loading the page, you will see a packet like this:
.0e!.#.. ......E.
...z at .n. ]G.d)...
.d.P.< ` .... eP.
.Q....HT TP/1.1 2
00 OK..C ontent-L
ength: 1 0140..Da
te: Thu, 10 Nov
2005 09: 00:14 GM
T..Conte nt-Type:
text/pl ain; cha
^^^^^^^^^^^
*should be text/html*
rset=ISO -8859-1.
.Server: Apache/
2.0.42 ( Unix) PH
P/4.2.3 mod_jk/1
.2.0..La st-Modif
ied: Mon , 31 Oct
2005 06 :58:29 G
MT..ETag : "db927
-279c-5d d18f40".
.Accept- Ranges:
bytes..K eep-Aliv
e: timeo ut=15, m
ax=57... .<html>.
...<head >..<meta
http-eq uiv="Con
tent-Typ e" conte
nt="text /html; c
harset=w indows-1
252">..< meta nam
e="GENER ATOR" co
ntent="M icrosoft
FrontPa ge 3.0">
-cut-
Regards,
Larry
More information about the ubuntu-users
mailing list