Mesaje recente

Members
Stats
  • Total Posts: 17,786
  • Total Topics: 1,234
  • Online today: 302
  • Online ever: 318
  • (17 October 2024, 13:29)
Users Online
Users: 0
Guests: 255
Total: 255

cum ia un browser index page?

Started by kquizak, 17 February 2007, 23:11

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kquizak

am incercat asta in consola:
telnet www.ase.ro 80
ok
apoi
GET / HTTP/1.0
-> under construction
am incercat in browser si am observat ca site-ul  e de genul http://www.ase.ro/site/index.asp
am observat ca daca pun http://www.ase.ro/index.htm sunt redirectionat unde trebe'...
intrebarea e cum fac sa iau index-ul pt. orice alt site?
iteresant e ca...
java
pw.print("GET /site/index.asp HTTP/1.0\r\n");
            pw.print("Accept: text/plain, text/html, text/*\r\n");
            pw.print("\r\n");
pw.flush();

raspude ca HTTP/1.1 404................
network-tools.ath.cx ---nmap yourself

kman

Redirectionarea se face cu http-redirect, dar asta functioneaza numai pentru un set restrans de user-agents (browsere) pentru cele nesuportate (cu ar fi clientul din java) se raspunde cu un HTTP 404 Page Not Found in loc de HTTP 301 Moved Permanently sau HTTP 307 Temporary Redirect.