Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2009, 08:49 AM
Analog Analog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 67 Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 27 m 24 sec
Reputation Power: 30
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

Reply With Quote
  #2  
Old June 4th, 2009, 02:10 PM
Sarah_S Sarah_S is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 197 Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Days 54 m 11 sec
Reputation Power: 275
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

Reply With Quote
  #3  
Old June 4th, 2009, 02:44 PM
Analog Analog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 67 Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 27 m 24 sec
Reputation Power: 30
Quote:
Originally Posted by Sarah_S
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


Thanks Sarah, however when I do that I get 404 not found (even though the file is right there).

Any other ideas?

Reply With Quote
  #4  
Old June 4th, 2009, 03:03 PM
Sarah_S Sarah_S is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 197 Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level)Sarah_S User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Days 54 m 11 sec
Reputation Power: 275
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.

Reply With Quote
  #5  
Old June 4th, 2009, 03:21 PM
Analog Analog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 67 Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level)Analog User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 27 m 24 sec
Reputation Power: 30
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....

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > general - Mime Type problem with RDF


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
Stay green...Green IT