Search Engine Optimization > Webmaster World > Get full HTTP header of URL
Get full HTTP header of URL
Posted by Alex on November 1st, 2005

HI everyone,

I'm trying to test a .wmv file, but it's not launching the plugin and
I'd like to check and see what mime setting it's getting from the
webserver. I have added the mime info, but since the text is just
loading in the browser instead of sending it to Windows Media Player
I'd like to see what it's using.

I know I can telnet to port 80 on the web server, but where do I tell
it the full URL instead of just domain name? So instead of
www.mysite.com I need www.mysite.com/test.wmv.

Thanks --

Sam

Posted by Chris Hope on November 1st, 2005

Alex wrote:

Try this tool: http://gsitecrawler.com/tools/server-status.aspx

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

Posted by Brian Wakem on November 1st, 2005

Alex wrote:


telnet site.com 80
HEAD /test.wmv HTTP/1.0


OR

perl -MLWP::UserAgent -e '$ua=LWP::UserAgent->new()
$res=$ua->head("http://www.mysite.com/test.wmv");print $res->as_string .
"\n";'


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png

Posted by Toby Inkster on November 2nd, 2005

Brian Wakem wrote:

If you're on a shared server, this alone will probably not be enough.

HEAD /test.wmv HTTP/1.0¬
Host: site.com¬
¬

where ¬ represents a line break -- that last blank line is essential.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact


Funbolt.com - Entertainment portal, wallpapers, sexy celebs