User Profile

Collapse

Profile Sidebar

Collapse
problem
problem
Last Activity: Jun 21 '07, 10:48 PM
Joined: Jun 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • problem
    replied to HTTPWebRequest unescapes automatically
    in .NET
    Am sorry you wont be able to execute it on your end. The vendor has IP security for the HTTP Get call.

    Here is the HTTPWebRequest code if that helps.

    Code:
            string infospaceUrl = "http://www.something.com/page=thelongstring";
            try
            {
                UTF8Encoding encoding = new UTF8Encoding();
                byte[] encodedPayload = encoding.GetBytes("");
    ...
    See more | Go to post

    Leave a comment:


  • problem
    replied to HTTPWebRequest unescapes automatically
    in .NET
    Well sorry to confuse you. Let me try to explain again.

    In the server side code of my application I make a HTTPWebRequest to a 3rd party vendor which uses HTTP Get to serve an XML formatted result. One of the parameters in this querystring is a long encoded string. If I open up a browser window and paste in this encoded string along with the URL, it works fine and returns the expected XML. But if I try to make the same call through...
    See more | Go to post

    Leave a comment:


  • problem
    replied to HTTPWebRequest unescapes automatically
    in .NET
    The querystring is correctly escaped/unescaped. If I try to escape it again and send, the HTTPWebRequest call does not unescape it at all. For some reason it is acting wierd. Below is the value that I need to pass in the querystring.

    Code:
    [I]zxeti%8Mfjus%2Nfxgdvetsa%7F057.0.1.4%5Cekefqrab%9Mhfl%1Fx-sytz-dvet-sfkgnus%7NVcha-Aioyu%546A%2MNycrolc%362I3.0%2M%2811cqwabdlkoe%264L%1EMUSP%2E5.0%264L%1EWkxopgv%5BPD%3L8.4%454C%5KVV3%363E%5B.XPU%5KF[/]
    ...
    See more | Go to post

    Leave a comment:


  • problem
    started a topic HTTPWebRequest unescapes automatically
    in .NET

    HTTPWebRequest unescapes automatically

    I am trying to use HTTPWebRequest to make a server side HTTP request to get response XML from a vendor. The vendor expects a bunch of querystring parameters, some of which have special characters in their values.

    For some reason HTTPWebRequest automatically unescapes these values in the querystring of the URL and messes up the end result. I then tried to use the System.URI.URI object and used the dontEscape=true constructor. But then...
    See more | Go to post
No activity results to display
Show More
Working...