Adding headers - WeOnlyDo Discussion board

Adding headers (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Matt Crook, Friday, January 14, 2011, 05:08 (5063 days ago)

Hey, I am looking to add custom headers to my app/web server! How do you do this? I am using ASPX also.


here is some code
Private Sub web1_RequestDoneEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Server.WebRequestDoneArgs) Handles web1.RequestDoneEvent
Args.User.Response.Headers.Add( UpdaterVersion , Testing )
'Args.User.ExecuteASPX(web1.DocumentRoot, / , / , Web.config )

Args.User.ExecuteASPX()

If Args.User.Request.PageName.ToLower = status.aspx Then
'Args.User.Response.Body = Args.User.Response.Body.Replace( < my_ver > , My.Application.Info.Version.ToString)

End If
'Args.User.ExecuteASPX( C:UsersmattAppDataRoamingWeOnlyDoSampleswodWebServer.NETVB 5. With ASPXWebSite1 , / , / , web.config )
End Sub


am i missing something?

Matt


Complete thread: