Help with base64 encoding

M

mm

Hello everyone,

I have an asp.net application executing under .net framework 1.1 that sends
a base64 encoded string token to a remote server running weblogic
application server. for some odd reason when the token reaches its
destination the '+' symbols in the token are converted to spaces which are
not valid base64 characters.

I am using HttpWebRequest to send the data and the content type is
application/x-www-form-urlencoded and the method is 'POST'

I have tried to change the content type to text/plain but this does not
work.

Thanks in advance for your help

best
MM
 
K

Kevin Spencer

How does it send the string? A + symbol translates to a space when
Url-decoding a string.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
T

Tommy

What about urlencode the base64 string before sending it.

Server.UrlEncode("dDwtMTI3OTMzNDM4NDs7Psy+A21q+f5l5HEOayec3EEb/MkF")

This will replace the '+' character with '%2b'.

Tommy,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top