Ampersand in HTTP POST

Results 1 to 2 of 2

Thread: Ampersand in HTTP POST

  1. #1
    Join Date
    Dec 1969

    Default Ampersand in HTTP POST

    I am using IE.navigate2 mrthod to post the content. in That content I have & as a Value. Hhen I send the HTTP POST, I Convert in Binaty Array. <BR><BR>The method looks like follwing <BR>ie.Navigate2 strURL, vFlags, vTarget, vPostdata, postHeader<BR><BR>where VPostdata is the binary array of the PayLoad <BR>Name="abc & Co"<BR><BR>If I have only Name = "abc Co" and try to conver in binary array and send it visa navigate2 it works fine but if I put & in between then the http post doen&#039;t go as it should <BR><BR>Please help<BR>

  2. #2
    Join Date
    Dec 1969

    Default Server.UrlEncode() the value.

    [code language="VBScript"]<BR>Name = Server.UrlEncode("abc & Co")<BR>[/code]<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts