|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
general - Mime Type problem with RDF
Folks, I'm hoping someone can tell me what I'm doing wrong while trying to do the simple process of adding a mime type.
I'm trying to add .rdf as a mime type. I've tried in both /etc/mime.types and in the httpd.conf application/rdf application/x-rdf application/rdf+xml text/xml .rdf And none of them have worked, whenever I try to telnet www.server.com 80 GET update.rdf HTTP/1.0 <enter><enter> I get a 400 bad request (and update.rdf is there). If I hit the URL in IE it prompts for a download of the file, if I do it in FF then I see it correctly (I assume FF knows how to handle it). Any ideas? TIA |
|
#2
|
|||
|
|||
|
Hello,
You will get that error if you omit the "/" before the file you are requesting. Try this instead: GET /update.rdf HTTP/1.0 |
|
#3
|
|||
|
|||
|
Quote:
Thanks Sarah, however when I do that I get 404 not found (even though the file is right there). Any other ideas? |
|
#4
|
|||
|
|||
|
I am not sure why, since I tried the same thing and it works fine here without adding "AddHandler application/rdf+xml .rdf" to httpd.conf, and application/rdf+xml is already listed in mime.types.
I did not do anything special to make this work. Code:
telnet 127.0.0.1 80 GET /update.rdf HTTP/1.0 Response: Code:
HTTP/1.1 200 OK Date: Thu, 04 Jun 2009 18:59:00 GMT Server: Apache/2.2.11 (Win32) SVN/1.6.1 DAV/2 Last-Modified: Thu, 04 Jun 2009 18:55:00 GMT ETag: "d0000000157d5-4-46b8a501fe5f8" Accept-Ranges: bytes Content-Length: 4 Connection: close Content-Type: application/rdf+xml test Maybe the problem is somewhere else? How about checking the access log? Last edited by Sarah_S : June 4th, 2009 at 03:07 PM. |
|
#5
|
|||
|
|||
|
Yeah, it makes no sense... In the error and access logs I see the same thing (404 without a / and 400 without).
If I try to use IE it prompts me every time to download the rdf and doesn't display it in the browser as a XML document. It doesn't seem to matter what mime type I put in, it doesn't matter if I try it in mime.types or httpd.conf or .htaccess it just never seems to be respected. It's so bizzare.... |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > general - Mime Type problem with RDF |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|