D
Dirk
Hi,
I am converting a program from VB6 to C#. This is the third in the serious
so it's not a question of not knowing how HttpWebRequest, WebRequest or
WebClient for that matter work. The problem is basically this.
The VB Code:
objSrvHTTP.setTimeouts -1, 15 * 1000, 15 * 1000, CLng(GMTValue * 30) *
CLng(1000)
objSrvHTTP.Open "GET", sActuateURLTemp, False
If (Err.Number <> 0) Then
mintLastError = 1
GoTo onApplicationError
End If
objSrvHTTP.setOption 2, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
objSrvHTTP.send
This works 100%. When I try to convert it to C# I can get it to post, the
problem is that the URL I am using has an escaped sequence in it which gets
URL Decoded which is throwing everything off. The part of the URL I'm
referring too is delta_parm=%26delta_date%3d01%2f02%2f2004+21%3a22%3a17 So
basically delta_parm should containt
%26delta_date%3d01%2f02%2f2004+21%3a22%3a17 but whenever I post this to any
server then it get's translated to delta_parm=&delta_date=01/02/2004
21/22/17 which is not what I wanted. It seems the MSXML HTTP poster took the
string as is and posted it, but .Net translates it all the time.
So my question is, is there a way to send this URL AS IS, without any
encoding at all ?
Please please I'm desperate for some help here.
Regards
Dirk
I am converting a program from VB6 to C#. This is the third in the serious
so it's not a question of not knowing how HttpWebRequest, WebRequest or
WebClient for that matter work. The problem is basically this.
The VB Code:
objSrvHTTP.setTimeouts -1, 15 * 1000, 15 * 1000, CLng(GMTValue * 30) *
CLng(1000)
objSrvHTTP.Open "GET", sActuateURLTemp, False
If (Err.Number <> 0) Then
mintLastError = 1
GoTo onApplicationError
End If
objSrvHTTP.setOption 2, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
objSrvHTTP.send
This works 100%. When I try to convert it to C# I can get it to post, the
problem is that the URL I am using has an escaped sequence in it which gets
URL Decoded which is throwing everything off. The part of the URL I'm
referring too is delta_parm=%26delta_date%3d01%2f02%2f2004+21%3a22%3a17 So
basically delta_parm should containt
%26delta_date%3d01%2f02%2f2004+21%3a22%3a17 but whenever I post this to any
server then it get's translated to delta_parm=&delta_date=01/02/2004
21/22/17 which is not what I wanted. It seems the MSXML HTTP poster took the
string as is and posted it, but .Net translates it all the time.
So my question is, is there a way to send this URL AS IS, without any
encoding at all ?
Please please I'm desperate for some help here.
Regards
Dirk