Mesaje recente

Members
Stats
  • Total Posts: 17786
  • Total Topics: 1234
  • Online Today: 10
  • Online Ever: 233
  • (26 June 2007, 07:28)
Users Online
Users: 0
Guests: 7
Total: 7

Author Topic: cum ia un browser index page?  (Read 824 times)

0 Members and 1 Guest are viewing this topic.

Offline kquizak

  • Membru
  • ***
  • Posts: 181
  • Cookies: 4
  • just tilicar
cum ia un browser index page?
« on: 18 February 2007, 00:11 »
am incercat asta in consola:
Code: [Select]
telnet www.ase.ro 80ok
apoi
Code: [Select]
GET / HTTP/1.0-> under construction
am incercat in browser si am observat ca site-ul  e de genul
Code: [Select]
http://www.ase.ro/site/index.aspam observat ca daca pun
Code: [Select]
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...
Code: [Select]
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
Code: [Select]
HTTP/1.1 404................
network-tools.ath.cx ---nmap yourself

Offline kman

  • God of the code-monkeys
  • Membru
  • ***
  • Posts: 192
  • Cookies: 24
Re: cum ia un browser index page?
« Reply #1 on: 18 February 2007, 03:17 »
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.