R
RP
Hi all, I have some code that does a basic form post to an .aspx page
submitting some XML in the body. This code used to work on my WIN2K server
running .net 1.0 sp2. Now since I have upgraded to SBS2003 running ISA2K as
a proxy and .net 1.1 it basically hangs and times out. Here is the code
snippet. Any ideas? ISA is configured in Integrated mode and all clients are
SecureNAT Clients not required to authenticate.
Private Function ProcessRequest(byval strbody as string) as string
Dim returnstr as string
Dim wp as new WebProxy("http://sterling--atl:8080/", true)
GlobalProxySelection.Select = wp
Dim h as httpwebrequest =
Ctype(WebRequest.Create("http://sterling--atl/public/tmk.aspx"),
httpwebrequest)
h.Proxy = wp
h.KeepAlive = false
h.timeout = 10000
h.method = "POST"
h.contentlength = strbody.length
h.contenttype = "application/x-www-form-urlencoded"
Dim sw as new streamwriter(h.getrequeststream())
sw.write(strbody)
sw.close()
Dim hr as httpwebresponse = Ctype(h.getresponse(), httpwebresponse) ' CODE
BREAKS HERE.
Dim sr as new streamreader(hr.getresponsestream())
returnstr = sr.readtoend()
sr.close()
funcend:
return returnstr
End Function
Please Help!!
submitting some XML in the body. This code used to work on my WIN2K server
running .net 1.0 sp2. Now since I have upgraded to SBS2003 running ISA2K as
a proxy and .net 1.1 it basically hangs and times out. Here is the code
snippet. Any ideas? ISA is configured in Integrated mode and all clients are
SecureNAT Clients not required to authenticate.
Private Function ProcessRequest(byval strbody as string) as string
Dim returnstr as string
Dim wp as new WebProxy("http://sterling--atl:8080/", true)
GlobalProxySelection.Select = wp
Dim h as httpwebrequest =
Ctype(WebRequest.Create("http://sterling--atl/public/tmk.aspx"),
httpwebrequest)
h.Proxy = wp
h.KeepAlive = false
h.timeout = 10000
h.method = "POST"
h.contentlength = strbody.length
h.contenttype = "application/x-www-form-urlencoded"
Dim sw as new streamwriter(h.getrequeststream())
sw.write(strbody)
sw.close()
Dim hr as httpwebresponse = Ctype(h.getresponse(), httpwebresponse) ' CODE
BREAKS HERE.
Dim sr as new streamreader(hr.getresponsestream())
returnstr = sr.readtoend()
sr.close()
funcend:
return returnstr
End Function
Please Help!!