<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Transact.dll removing parts of my receipt.aspx page! in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26868#M14246</link>
    <description>&lt;P&gt;The fix is just like the relay response fix. Use a javascript redirect to your receipt.aspx&lt;/P&gt;&lt;P&gt;So it will be&lt;/P&gt;&lt;P&gt;1)form1.aspx to authorize.net&lt;/P&gt;&lt;P&gt;2)a middle-man.aspx page the will javascript redirect, or javascript form post to&lt;/P&gt;&lt;P&gt;3)receipt.aspx&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2012 20:23:49 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2012-05-31T20:23:49Z</dc:date>
    <item>
      <title>Transact.dll removing parts of my receipt.aspx page!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26840#M14232</link>
      <description>&lt;P&gt;I am currently trying to get my receipt.aspx page that the user is sent to by&amp;nbsp;Authorize.Net&amp;nbsp;after submitting their transaction. I am using the Relay Response method for this, but it seems like Authorize.Net's&amp;nbsp;transact.dll page is removing certain things from my page. Specifically, and most importantly at this point in time, it is removing the script tag that accesses WebResource.axd, as well as one of the script tags that accesses ScriptResource.axd. Because of this, I am receiving errors. If I open my receipt.aspx directly (by simply entering the URL for it into the browser) and then do a view source, these things are there, so transact.dll is obviously modifying the page somehow. I thought that the page was simply retreived&amp;nbsp;and displayed by transact.dll.&amp;nbsp;What does transact.dll do to a page between when it retreives it and displays it, and how can I fix my problem? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 23:03:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26840#M14232</guid>
      <dc:creator>njsokalski</dc:creator>
      <dc:date>2012-05-30T23:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transact.dll removing parts of my receipt.aspx page!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26842#M14233</link>
      <description>&lt;P&gt;Are they absolute path or relative path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 23:11:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26842#M14233</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-05-30T23:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transact.dll removing parts of my receipt.aspx page!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26848#M14236</link>
      <description>&lt;P&gt;Both. I have tried the way they are rendered by default, which is /WebResource.axd and /ScriptResource.axd, and I have tried making them absolute, which would be &lt;A target="_blank" href="http://www.mydomain.com/WebResource.axd"&gt;http://www.mydomain.com/WebResource.axd&lt;/A&gt; and &lt;A target="_blank" href="http://www.mydomain.com/ScriptResource.axd,"&gt;http://www.mydomain.com/ScriptResource.axd,&lt;/A&gt; but either way they were simply absent from what was sent from transact.dll. I obviously want to use the absolute, since the browser is still at Authorize.Net while the page is displayed.&amp;nbsp;Does transact.dll make any changes (any changes at all)&amp;nbsp;to the page it is relaying, or am I wasting my time trying to figure it&amp;nbsp;out?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 02:17:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26848#M14236</guid>
      <dc:creator>njsokalski</dc:creator>
      <dc:date>2012-05-31T02:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transact.dll removing parts of my receipt.aspx page!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26856#M14240</link>
      <description>&lt;P&gt;Is not that it is removing. It how is work. Try the following code and read the responseFromServer string. If you comment out the UserAgent, it will remove some of the javascript code.&lt;/P&gt;&lt;PRE&gt;HttpWebRequest request = (HttpWebRequest)WebRequest.Create("YOUR RECEIPT PAGE");
		request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0";
		HttpWebResponse response = (HttpWebResponse)request.GetResponse();

		Stream dataStream = response.GetResponseStream();
		// Open the stream using a StreamReader for easy access.
		StreamReader reader = new StreamReader(dataStream);
		// Read the content.
		string responseFromServer = reader.ReadToEnd();
		// Display the content.
		Console.WriteLine(responseFromServer);
		// Cleanup the streams and the response.
		reader.Close();
		dataStream.Close();
		response.Close();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 12:26:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26856#M14240</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-05-31T12:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transact.dll removing parts of my receipt.aspx page!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26864#M14244</link>
      <description>&lt;P&gt;OK, that's good to know. But how can I fix it? My first thought was to make a "middle-man" that uses a WebRequest with the UserAgent set to get the response from Receipt.aspx, and then writes that directly&amp;nbsp;to the response. I tried this using an&amp;nbsp;HttpHandler as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports System.IO&lt;/P&gt;&lt;P&gt;Public Class ReceiptWithUA : Implements System.Web.IHttpHandler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim req As HttpWebRequest = CType(WebRequest.Create("&lt;A target="_blank" href="http://www.mckeepottery.com/catalog/Receipt.aspx"&gt;http://www.mckeepottery.com/catalog/Receipt.aspx&lt;/A&gt;"), HttpWebRequest)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;req.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; FunWebProducts)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim resp As HttpWebResponse = CType(req.GetResponse(), HttpWebResponse)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim datastream As Stream = resp.GetResponseStream()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim reader As New StreamReader(datastream)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim responsefromserver As String = reader.ReadToEnd()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;context.Response.ContentType = resp.ContentType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;context.Response.Headers.Add(resp.Headers)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;context.Response.Write(responsefromserver)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reader.Close()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;datastream.Close()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;resp.Close()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End Get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;End Property&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this did not seem to make any difference. My handler sends a UserAgent, so it's&amp;nbsp;getting what I want from Receipt.aspx and then returning that to transact.dll. Since transact.dll is only directly&amp;nbsp;accessing the handler, which doesn't care whether it has a UserAgent since it is not the one generating the code, shouldn't the stuff returned from Receipt.aspx to my handler be what is shown by transact.dll? Because WebResource.axd is very important for my Receipt.aspx page, I need to know how to not have it removed. Any ideas? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 20:16:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26864#M14244</guid>
      <dc:creator>njsokalski</dc:creator>
      <dc:date>2012-05-31T20:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transact.dll removing parts of my receipt.aspx page!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26868#M14246</link>
      <description>&lt;P&gt;The fix is just like the relay response fix. Use a javascript redirect to your receipt.aspx&lt;/P&gt;&lt;P&gt;So it will be&lt;/P&gt;&lt;P&gt;1)form1.aspx to authorize.net&lt;/P&gt;&lt;P&gt;2)a middle-man.aspx page the will javascript redirect, or javascript form post to&lt;/P&gt;&lt;P&gt;3)receipt.aspx&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 20:23:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transact-dll-removing-parts-of-my-receipt-aspx-page/m-p/26868#M14246</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-05-31T20:23:49Z</dc:date>
    </item>
  </channel>
</rss>

