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.ContentType = "application/ocsp-request";
|
||||
con.Accept = "application/ocsp-response";
|
||||
con.Method = "POST";
|
||||
Stream outp = con.GetRequestStream();
|
||||
outp.Write(array, 0, array.Length);
|
||||
outp.Close();
|
||||
|
|
|
@ -187,7 +187,7 @@ namespace iTextSharp.text.pdf {
|
|||
HttpWebRequest con = (HttpWebRequest)WebRequest.Create(tsaURL);
|
||||
con.ContentLength = requestBytes.Length;
|
||||
con.ContentType = "application/timestamp-query";
|
||||
con.TransferEncoding = "binary";
|
||||
con.Method = "POST";
|
||||
if ((tsaUsername != null) && !tsaUsername.Equals("") ) {
|
||||
string authInfo = tsaUsername + ":" + tsaPassword;
|
||||
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
|
||||
|
|
Loading…
Reference in New Issue