8 Replies - 2022 Views - Last Post: 20 December 2008 - 03:31 PM Rate Topic: -----

#1 RauLiTo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 28-November 07

Web browser

Posted 18 December 2008 - 10:05 AM

Good evening ... !

i tried to design a web browser and everything is fine but my problem is ... i want to show in my code how can http works ... which mean i need to write the implemenation of the navigate function ... can any one help please ?!
Is This A Good Question/Topic? 0
  • +

Replies To: Web browser

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Web browser

Posted 18 December 2008 - 11:46 AM

Post the code that you have completed so far in your attempt to fulfill your assignment.

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 RauLiTo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 28-November 07

Re: Web browser

Posted 18 December 2008 - 02:18 PM

Thanks for caring Jayman ...

here is the code ... its really simple thats why i didnt write it !

Public Class Form1

	Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

	End Sub

	Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
		WebBrowser1.GoHome()

	End Sub

	Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
		WebBrowser1.Navigate(TextBox1.Text)
	End Sub

	Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
		WebBrowser1.Stop()

	End Sub

	Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
		WebBrowser1.GoForward()

	End Sub

	Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
		WebBrowser1.GoBack()

	End Sub

	Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
		End
	End Sub
End Class




and as the dr said he wnat us to show how http working (( i guess he want the implemenation of navigate or something ... )) !
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Web browser

Posted 18 December 2008 - 02:36 PM

I apologize, but I really don't understand what you're asking help with
Was This Post Helpful? 0
  • +
  • -

#5 RauLiTo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 28-November 07

Re: Web browser

Posted 19 December 2008 - 02:01 AM

The question is asking me to design an educational browser that show me in it how HTTP work .
Was This Post Helpful? 0
  • +
  • -

#6 Saldash  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 98
  • Joined: 20-December 08

Re: Web browser

Posted 20 December 2008 - 10:21 AM

Do you mean you wish to display the way tags work?
such as; <Font Face="Calibri">...</Font>

Or are you looking for something differant?

/Saldash

BTW.. will intro myself when I can, just thought I'd hop in and ask
:)
Was This Post Helpful? 0
  • +
  • -

#7 KoaL  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 14-December 08

Re: Web browser

Posted 20 December 2008 - 10:31 AM

View PostRauLiTo, on 19 Dec, 2008 - 01:01 AM, said:

The question is asking me to design an educational browser that show me in it how HTTP work .

does he mean using winsock and the GET "data" HTTP/1.0, if so that shouldnt be to hard to rig up
Was This Post Helpful? 0
  • +
  • -

#8 RauLiTo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 28-November 07

Re: Web browser

Posted 20 December 2008 - 01:08 PM

View PostKoaL, on 20 Dec, 2008 - 09:31 AM, said:

View PostRauLiTo, on 19 Dec, 2008 - 01:01 AM, said:

The question is asking me to design an educational browser that show me in it how HTTP work .

does he mean using winsock and the GET "data" HTTP/1.0, if so that shouldnt be to hard to rig up


yes i guess thats exactly what do i need ... can you please write at least some lines of that code ?!
Was This Post Helpful? 0
  • +
  • -

#9 KoaL  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 14-December 08

Re: Web browser

Posted 20 December 2008 - 03:31 PM

well first off you need to add the the microsoft winsock control component

Option Explicit

Private Sub Command1_Click()
Sock.Connect "www.google.com", "80" ' open the socket to a server on port 80
End Sub

Private Sub sock_connect()
' send the link you want to look up
Sock.SendData "Get /search?q=visual+basic+winsock+help HTTP/1.0" & vbCrLf & vbCrLf
' dont forget the vbCrLf's
' also some servers require more info to be sent, like hostname, user-agent
'etc... so your going to want to look into that some
End Sub

Private Sub sock_DataArrival(ByVal bytes As Long)
Static buf As String
' heres where you handle the incoming data
Sock.GetData buf, vbString
Text1.Text = Text1.Text & buf & vbCrLf
End Sub


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1