Missing POST.

git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@47 820d3149-562b-4f88-9aa4-a8e61a3485cf
master
psoares33 2009-07-04 13:21:47 +00:00
parent e3807b1d00
commit 413040747b
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -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));