Missing POST.
git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@47 820d3149-562b-4f88-9aa4-a8e61a3485cfmaster
parent
e3807b1d00
commit
413040747b
|
@ -124,6 +124,7 @@ namespace iTextSharp.text.pdf {
|
||||||
con.ContentLength = array.Length;
|
con.ContentLength = array.Length;
|
||||||
con.ContentType = "application/ocsp-request";
|
con.ContentType = "application/ocsp-request";
|
||||||
con.Accept = "application/ocsp-response";
|
con.Accept = "application/ocsp-response";
|
||||||
|
con.Method = "POST";
|
||||||
Stream outp = con.GetRequestStream();
|
Stream outp = con.GetRequestStream();
|
||||||
outp.Write(array, 0, array.Length);
|
outp.Write(array, 0, array.Length);
|
||||||
outp.Close();
|
outp.Close();
|
||||||
|
|
|
@ -187,7 +187,7 @@ namespace iTextSharp.text.pdf {
|
||||||
HttpWebRequest con = (HttpWebRequest)WebRequest.Create(tsaURL);
|
HttpWebRequest con = (HttpWebRequest)WebRequest.Create(tsaURL);
|
||||||
con.ContentLength = requestBytes.Length;
|
con.ContentLength = requestBytes.Length;
|
||||||
con.ContentType = "application/timestamp-query";
|
con.ContentType = "application/timestamp-query";
|
||||||
con.TransferEncoding = "binary";
|
con.Method = "POST";
|
||||||
if ((tsaUsername != null) && !tsaUsername.Equals("") ) {
|
if ((tsaUsername != null) && !tsaUsername.Equals("") ) {
|
||||||
string authInfo = tsaUsername + ":" + tsaPassword;
|
string authInfo = tsaUsername + ":" + tsaPassword;
|
||||||
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
|
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
|
||||||
|
|
Loading…
Reference in New Issue