@@ -82,6 +82,7 @@ public HttpResult Get(string url, string token, bool binaryMode = false)
82
82
}
83
83
wReq . UserAgent = userAgent ;
84
84
wReq . AllowAutoRedirect = allowAutoRedirect ;
85
+ wReq . ServicePoint . Expect100Continue = false ;
85
86
86
87
HttpWebResponse wResp = wReq . GetResponse ( ) as HttpWebResponse ;
87
88
@@ -149,7 +150,7 @@ public HttpResult Get(string url, string token, bool binaryMode = false)
149
150
}
150
151
sb . AppendLine ( ) ;
151
152
152
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
153
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
153
154
result . RefText += sb . ToString ( ) ;
154
155
}
155
156
finally
@@ -186,6 +187,7 @@ public HttpResult Post(string url, string token, bool binaryMode = false)
186
187
}
187
188
wReq . UserAgent = userAgent ;
188
189
wReq . AllowAutoRedirect = allowAutoRedirect ;
190
+ wReq . ServicePoint . Expect100Continue = false ;
189
191
190
192
HttpWebResponse wResp = wReq . GetResponse ( ) as HttpWebResponse ;
191
193
@@ -253,7 +255,7 @@ public HttpResult Post(string url, string token, bool binaryMode = false)
253
255
}
254
256
sb . AppendLine ( ) ;
255
257
256
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
258
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
257
259
result . RefText += sb . ToString ( ) ;
258
260
}
259
261
finally
@@ -292,6 +294,7 @@ public HttpResult PostData(string url, byte[] data, string token, bool binaryMod
292
294
wReq . ContentType = ContentType . APPLICATION_OCTET_STREAM ;
293
295
wReq . UserAgent = userAgent ;
294
296
wReq . AllowAutoRedirect = allowAutoRedirect ;
297
+ wReq . ServicePoint . Expect100Continue = false ;
295
298
296
299
if ( data != null )
297
300
{
@@ -369,7 +372,7 @@ public HttpResult PostData(string url, byte[] data, string token, bool binaryMod
369
372
}
370
373
sb . AppendLine ( ) ;
371
374
372
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
375
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
373
376
result . RefText += sb . ToString ( ) ;
374
377
}
375
378
finally
@@ -409,6 +412,7 @@ public HttpResult PostData(string url, byte[] data, string mimeType, string toke
409
412
wReq . ContentType = mimeType ;
410
413
wReq . UserAgent = userAgent ;
411
414
wReq . AllowAutoRedirect = allowAutoRedirect ;
415
+ wReq . ServicePoint . Expect100Continue = false ;
412
416
413
417
if ( data != null )
414
418
{
@@ -486,7 +490,7 @@ public HttpResult PostData(string url, byte[] data, string mimeType, string toke
486
490
}
487
491
sb . AppendLine ( ) ;
488
492
489
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
493
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
490
494
result . RefText += sb . ToString ( ) ;
491
495
}
492
496
finally
@@ -525,6 +529,7 @@ public HttpResult PostJson(string url, string data, string token, bool binaryMod
525
529
wReq . ContentType = ContentType . APPLICATION_JSON ;
526
530
wReq . UserAgent = userAgent ;
527
531
wReq . AllowAutoRedirect = allowAutoRedirect ;
532
+ wReq . ServicePoint . Expect100Continue = false ;
528
533
529
534
if ( data != null )
530
535
{
@@ -602,7 +607,7 @@ public HttpResult PostJson(string url, string data, string token, bool binaryMod
602
607
}
603
608
sb . AppendLine ( ) ;
604
609
605
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
610
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
606
611
result . RefText += sb . ToString ( ) ;
607
612
}
608
613
finally
@@ -641,6 +646,7 @@ public HttpResult PostText(string url, string data, string token, bool binaryMod
641
646
wReq . ContentType = ContentType . TEXT_PLAIN ;
642
647
wReq . UserAgent = userAgent ;
643
648
wReq . AllowAutoRedirect = allowAutoRedirect ;
649
+ wReq . ServicePoint . Expect100Continue = false ;
644
650
645
651
if ( data != null )
646
652
{
@@ -718,7 +724,7 @@ public HttpResult PostText(string url, string data, string token, bool binaryMod
718
724
}
719
725
sb . AppendLine ( ) ;
720
726
721
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
727
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
722
728
result . RefText += sb . ToString ( ) ;
723
729
}
724
730
finally
@@ -757,6 +763,7 @@ public HttpResult PostForm(string url, Dictionary<string, string> kvData, string
757
763
wReq . ContentType = ContentType . WWW_FORM_URLENC ;
758
764
wReq . UserAgent = userAgent ;
759
765
wReq . AllowAutoRedirect = allowAutoRedirect ;
766
+ wReq . ServicePoint . Expect100Continue = false ;
760
767
761
768
if ( kvData != null )
762
769
{
@@ -840,7 +847,7 @@ public HttpResult PostForm(string url, Dictionary<string, string> kvData, string
840
847
}
841
848
sb . AppendLine ( ) ;
842
849
843
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
850
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
844
851
result . RefText += sb . ToString ( ) ;
845
852
}
846
853
finally
@@ -879,6 +886,7 @@ public HttpResult PostForm(string url, string data, string token, bool binaryMod
879
886
wReq . ContentType = ContentType . WWW_FORM_URLENC ;
880
887
wReq . UserAgent = userAgent ;
881
888
wReq . AllowAutoRedirect = allowAutoRedirect ;
889
+ wReq . ServicePoint . Expect100Continue = false ;
882
890
883
891
if ( ! string . IsNullOrEmpty ( data ) )
884
892
{
@@ -956,7 +964,7 @@ public HttpResult PostForm(string url, string data, string token, bool binaryMod
956
964
}
957
965
sb . AppendLine ( ) ;
958
966
959
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
967
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
960
968
result . RefText += sb . ToString ( ) ;
961
969
}
962
970
finally
@@ -995,6 +1003,7 @@ public HttpResult PostForm(string url, byte[] data, string token, bool binaryMod
995
1003
wReq . ContentType = ContentType . WWW_FORM_URLENC ;
996
1004
wReq . UserAgent = userAgent ;
997
1005
wReq . AllowAutoRedirect = allowAutoRedirect ;
1006
+ wReq . ServicePoint . Expect100Continue = false ;
998
1007
999
1008
if ( data != null )
1000
1009
{
@@ -1072,7 +1081,7 @@ public HttpResult PostForm(string url, byte[] data, string token, bool binaryMod
1072
1081
}
1073
1082
sb . AppendLine ( ) ;
1074
1083
1075
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
1084
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
1076
1085
result . RefText += sb . ToString ( ) ;
1077
1086
}
1078
1087
finally
@@ -1112,6 +1121,7 @@ public HttpResult PostMultipart(string url, byte[] data, string boundary, string
1112
1121
wReq . ContentType = string . Format ( "{0}; boundary={1}" , ContentType . MULTIPART_FORM_DATA , boundary ) ;
1113
1122
wReq . UserAgent = userAgent ;
1114
1123
wReq . AllowAutoRedirect = allowAutoRedirect ;
1124
+ wReq . ServicePoint . Expect100Continue = false ;
1115
1125
1116
1126
wReq . AllowWriteStreamBuffering = true ;
1117
1127
using ( Stream sReq = wReq . GetRequestStream ( ) )
@@ -1186,7 +1196,7 @@ public HttpResult PostMultipart(string url, byte[] data, string boundary, string
1186
1196
}
1187
1197
sb . AppendLine ( ) ;
1188
1198
1189
- result . RefCode = ( int ) HttpCode . USER_EXCEPTION ;
1199
+ result . RefCode = ( int ) HttpCode . USER_UNDEF ;
1190
1200
result . RefText += sb . ToString ( ) ;
1191
1201
}
1192
1202
finally
0 commit comments