Headers

I am not sure where to ask this question, but anyway.

I am writing a simple browser.
I can do most things with it, except i have one problem.

On sites that require you to click on a link then in that new window click enter (Pay to click sites etc) i cannot get to work.

I read somewhere in the http protocol that there is a header called referer, do i need to use this?
Basically, i just want to be able to connect to pages and do it like IE does..
What data do i need to send to the servers in order to get these sites to realise that i have come from another url, and that i am not going straight to the enter url on these types of sites.


Thank you
wormboy__6Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhurstCommented:
There is a header called REFERER, not that it is mis-spelled, there is an R missing.  This should be of the form:
Referer: url
where url is the url of the refering page.

I am not convinced that this is your problem, but this is what referer does.
0
wormboy__6Author Commented:
Yes, i realise that this is what the header referer does, but i dont think that is my problem either.

How do the sites know whether you have been to the first url then..the one before the 'enter' url?
0
jhurstCommented:
I have a script at:
http://209.245.58.156/env.cgi
that you may want to test with.  It returns everything that is available to it, as such you can use it to see what a browser that does work set and you do not.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

wormboy__6Author Commented:
ok, but how is this going to help me to work out how to display urls properly eg Pay to CLick sites etc
0
FAQCommented:
Would you mind posting the code that sends HTTP requests so I can take a look at it? What language are you writing the browser in?
0
jhurstCommented:
also, give us the pages where you are having problems.
0
freshmeatCommented:
?
wormboy is writing a browser, i think it is not related to cgi topic
but anyway, i am doing the same thing in C++, i don't know how to post form in my exe

waiting for experts
:)
0
FAQCommented:
copy the relevant section of source code and past. Namely the section where you're composing the text string to send as HTTP header to the server
0
FAQCommented:
BTW, you might want to check this page out, it's from W3C (It's standard RFC822 specification, and describes all the HTTP Request Headers). What you're looking for is under the Referer section

http://www.w3.mag.keio.ac.jp/Protocols/HTTP/HTRQ_Headers.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wormboy__6Author Commented:
ok...ive worked out how to do it thank you all.
0
oskaCommented:
I'm happy
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.