Hi I wrote an program that sends GET http request to one specific address and get the content. it works fine, but i found that Not for every WEB. I thought that when I call GET and get the content of an page it is same like witting this address directly to the address bar of some browser, but it is not.

i don't know how, but Some web page i need to get one of its page downloaded. Need to be clicked manually form the browser. Even when I copy that url and paste it to the address bar of that instance of the browser it doesnot work. there must be some script there on that page plese help me

How can i fully simullate common click on that page.
Posted on 2002-05-09 14:17:42 by RAGuru
Hi I wrote an program that sends GET http request to one specific address and get the content. it works fine, but i found that Not for every WEB. I thought that when I call GET and get the content of an page it is same like witting this address directly to the address bar of some browser, but it is not.


Hi, it could be that the address is just a redirector (like *.cjb.net). In this case, you would have to parse the url of the redirected location ("Location: ") from the information the server gives you when you issue a 'GET' command and get the html from there.

e.g.


GET / HTTP/1.1
Host: cool.cjb.net


HTTP/1.1 302 FOUND
..
..
Location: http://redirected.addres.com/~home ; 'THE' url
..


could be something else though.

i don't know how, but Some web page i need to get one of its page downloaded. Need to be clicked manually form the browser. Even when I copy that url and paste it to the address bar of that instance of the browser it doesnot work. there must be some script there on that page plese help me


can you give an example url for that?
Posted on 2002-05-09 22:33:20 by clip
Could also be the need for a 'referer: ' line...
Posted on 2002-05-11 05:21:31 by f0dder
The real address i need to click is

http://www.kisshady.cz/promo/tablo-hlas.php?id=6

It is an voting script.

I experienced problem even if I just paste that address to the address bar of IE and click REturn. It has to be clicked by mouse!!!!

It is not in english so if you get:

"Hlas nelze ulozit" it means : Your vote can't be saved.
"Vas hlas nebyl prijat.....(IP add).... " means> Your voting can't be saved due to same IP as voted with before.
and If you get>
"Vas hlas byl zapsan" > than it is OK and vote has been added.
Posted on 2002-05-11 14:18:35 by RAGuru
You need to POST the data.
Posted on 2002-05-11 14:26:38 by bazik
I tried but POSt does not work, the result is the same as with GET.

But the problem was in the referer line Thanks a lot!!!!!.
Posted on 2002-05-11 14:44:39 by RAGuru