Get Server Response Tool

Just starting out? Need help? Post your questions and find answers here.
Oxyandy
User
User
Posts: 10
Joined: Wed Jun 26, 2013 5:15 pm

Get Server Response Tool

Post by Oxyandy »

Hi everyone,

I have been doing my reading, anyway I have found older methods, newer ones etc..
I have compiled & debugged a few things, but I feel like I am probably over complicating it !
I dare not corrupt this post by suggesting those..

A simple thing I am trying to do, Get the server response for /HEAD " X_URL$ "
IE is it 200 302 404 (Number returned only)

I know about GetHTTPHeader, but that doesn't supply a User-Agent:
So I will need to supply one as well, otherwise the Server gives a different response.
But nothing else extra is required in the Request..

User-Agent: Mozilla/5.0 (just fine)

So please if someone can supply me a snippet, I can tweak & break, and fix again
that is specifically a little closer to my need, that would be awesome !

Apologies for being a n00b :D

EDIT: Ok, SOLVED - working perfectly from CMD + Parameter
Image
[url]irc://freenode/purebasic[/url]