Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: 16 Feb 2007 06:19:13 -0800,    group: microsoft.public.exchange2000.development        back       


WebDav fails trying to get messages with special characters in the subject   
I have an app that uses webdav to pull info from messages in a
folder.  It fails when there are special characters in the subject of
a message, like #.   You need to use the display name of the message
in the request, and the display name is the subject of the message.
Is there some way to XML-encode it or something so that it will pass
the special characaters through?

Thanks.
date: 16 Feb 2007 06:19:13 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
"Joe"  wrote in message
news:1171635553.010294.33810@k78g2000cwa.googlegroups.com...
> I have an app that uses webdav to pull info from messages in a
> folder.  It fails when there are special characters in the subject
of
> a message, like #.   You need to use the display name of the message
> in the request, and the display name is the subject of the message.
> Is there some way to XML-encode it or something so that it will pass
> the special characaters through?
>
> Thanks.

It needs to be URL-Encoded.

Lee.


-- 
_______________________________________

Outlook Web Access For PDA , OWA For WAP
www.owapda.com
email a@t leederbyshire d.0.t c.0.m
_______________________________________
date: Mon, 19 Feb 2007 13:14:39 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: WebDav fails trying to get messages with special characters in the subject   
On Feb 19, 6:14 am, "Lee Derbyshire [MVP]" <email a@t leederbyshire d.
0.t c.0.m> wrote:
>
> It needs to be URL-Encoded.
>
> Lee.

That was the first thing I tried.  It doesn't work.
date: 19 Feb 2007 13:22:11 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
"Joe"  wrote in message
news:1171920131.249574.159100@p10g2000cwp.googlegroups.com...
> On Feb 19, 6:14 am, "Lee Derbyshire [MVP]" <email a@t leederbyshire
d.
> 0.t c.0.m> wrote:
> >
> > It needs to be URL-Encoded.
> >
> > Lee.
>
> That was the first thing I tried.  It doesn't work.

What happens, then?  Have a look at your IIS logs and see what happens
when it tries to get the item.  Also, look at the items with Exchange
Explorer to make sure that the URL is what you think it is.

Lee.

-- 
_______________________________________

Outlook Web Access For PDA , OWA For WAP
www.owapda.com
email a@t leederbyshire d.0.t c.0.m
_______________________________________
date: Tue, 20 Feb 2007 15:25:54 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: WebDav fails trying to get messages with special characters in the subject   
> What happens, then?  Have a look at your IIS logs and see what happens
> when it tries to get the item.  Also, look at the items with Exchange
> Explorer to make sure that the URL is what you think it is.
>
> Lee.

I get a 404 not found error. I also get the not found error on e-mails
that don't have special characters when I urlencode the path.  Those
work fine when they are not url encoded, so I know I have the URLs
correct.
date: 20 Feb 2007 07:48:49 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
"Joe"  wrote in message
news:1171986529.391434.282690@s48g2000cws.googlegroups.com...
> > What happens, then?  Have a look at your IIS logs and see what
happens
> > when it tries to get the item.  Also, look at the items with
Exchange
> > Explorer to make sure that the URL is what you think it is.
> >
> > Lee.
>
> I get a 404 not found error. I also get the not found error on
e-mails
> that don't have special characters when I urlencode the path.  Those
> work fine when they are not url encoded, so I know I have the URLs
> correct.

I can only suggest installing Exchange Explorer from the SDK onto your
server.  You can use this to see what the URL should be, and compare
it with what you are using.  There is a basic relationship between the
subject and the URL, but it is not always consistent, so just
URL-encoding the subject is not a reliable way of getting the message
URL.
date: Tue, 20 Feb 2007 16:11:42 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: WebDav fails trying to get messages with special characters in the subject   
On Feb 20, 9:11 am, "Lee Derbyshire [MVP]" <email a@t leederbyshire d.
0.t c.0.m> wrote:

> I can only suggest installing Exchange Explorer from the SDK onto your
> server.  You can use this to see what the URL should be, and compare
> it with what you are using.  There is a basic relationship between the
> subject and the URL, but it is not always consistent, so just
> URL-encoding the subject is not a reliable way of getting the message
> URL.

Installing anything on the server isn't an option, unfortunately.
It's a production mail server.  I understand that the url isn't
exactly the same as the subject.  I am getting the message urls by
querying the folder, and the ones without special characters work fine
(if they are not url encoded) so I am confident that I have the
correct urls.
date: 20 Feb 2007 08:34:02 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
"Joe"  wrote in message
news:1171989242.076533.85520@s48g2000cws.googlegroups.com...
> On Feb 20, 9:11 am, "Lee Derbyshire [MVP]" <email a@t leederbyshire
d.
> 0.t c.0.m> wrote:
>
> > I can only suggest installing Exchange Explorer from the SDK onto
your
> > server.  You can use this to see what the URL should be, and
compare
> > it with what you are using.  There is a basic relationship between
the
> > subject and the URL, but it is not always consistent, so just
> > URL-encoding the subject is not a reliable way of getting the
message
> > URL.
>
> Installing anything on the server isn't an option, unfortunately.
> It's a production mail server.  I understand that the url isn't
> exactly the same as the subject.  I am getting the message urls by
> querying the folder, and the ones without special characters work
fine
> (if they are not url encoded) so I am confident that I have the
> correct urls.

If you are sure that you have the correct URLs (i.e. you are getting
them from a search result, in which case they are already
URL-encoded), then something else must be in the way.  It might be
something like URLScan (look for denied sequences in the URLScan.ini
file), or you are going through an ISA server which is being too
strict with the allowed sequences.
date: Tue, 20 Feb 2007 16:56:18 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: WebDav fails trying to get messages with special characters in the subject   
On Feb 20, 9:56 am, "Lee Derbyshire [MVP]" <email a@t leederbyshire d.
0.t c.0.m> wrote:
>
> If you are sure that you have the correct URLs (i.e. you are getting
> them from a search result, in which case they are already
> URL-encoded), then something else must be in the way.  It might be
> something like URLScan (look for denied sequences in the URLScan.ini
> file), or you are going through an ISA server which is being too
> strict with the allowed sequences.

Thanks for your help.  Where is the urlscan.ini - on the exchange
server?
date: 20 Feb 2007 11:16:33 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
On Feb 20, 12:16 pm, "Joe"  wrote:
> On Feb 20, 9:56 am, "Lee Derbyshire [MVP]" <email a@t leederbyshire d.
>
> 0.t c.0.m> wrote:
>
> > If you are sure that you have the correct URLs (i.e. you are getting
> > them from a search result, in which case they are already
> > URL-encoded), then something else must be in the way.  It might be
> > something like URLScan (look for denied sequences in the URLScan.ini
> > file), or you are going through an ISA server which is being too
> > strict with the allowed sequences.
>
> Thanks for your help.  Where is the urlscan.ini - on the exchange
> server?

Here's something I just noticed - when I url encode the urls, it is
putting in plus signs for spaces instead of %20.  Could this be the
problem?  I'm using HttpUtility.UrlEncode to do the encoding.  Should
I be doing it a different way?
date: 20 Feb 2007 12:22:35 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
On Feb 20, 1:22 pm, "Joe"  wrote:

> Here's something I just noticed - when I url encode the urls, it is
> putting in plus signs for spaces instead of %20.  Could this be the
> problem?  I'm using HttpUtility.UrlEncode to do the encoding.  Should
> I be doing it a different way?

I got it now.  I have to url encode it, and then change the pluses to
%20 and it works.  Is there some url encode function that will do this
correctly?
date: 20 Feb 2007 13:49:13 -0800   author:   Joe

Re: WebDav fails trying to get messages with special characters in the subject   
"Joe"  wrote in message
news:1172008153.411918.100580@t69g2000cwt.googlegroups.com...
> On Feb 20, 1:22 pm, "Joe"  wrote:
>
> > Here's something I just noticed - when I url encode the urls, it
is
> > putting in plus signs for spaces instead of %20.  Could this be
the
> > problem?  I'm using HttpUtility.UrlEncode to do the encoding.
Should
> > I be doing it a different way?
>
> I got it now.  I have to url encode it, and then change the pluses
to
> %20 and it works.  Is there some url encode function that will do
this
> correctly?

I only ever use VBScript, so I don't know how to use the
HttpUtility.UrlEncode that you mention.  In VBScript, I would try to
replace the + with a %20 like this:
 strURL = Replace(strURL, "+", "%20")
Perhaps you can find an equivalent?

Lee.

-- 
_______________________________________

Outlook Web Access For PDA , OWA For WAP
www.owapda.com
email a@t leederbyshire d.0.t c.0.m
_______________________________________
date: Wed, 21 Feb 2007 13:38:31 -0000   author:   Lee Derbyshire [MVP] email a@t leederbyshire d.0.t c.0.m

Re: WebDav fails trying to get messages with special characters in the subject   
> I only ever use VBScript, so I don't know how to use the
> HttpUtility.UrlEncode that you mention.  In VBScript, I would try to
> replace the + with a %20 like this:
>  strURL = Replace(strURL, "+", "%20")
> Perhaps you can find an equivalent?
>
> Lee.

 I'm using VB.Net 2.0.   The HttpUtility class is in the system.web
namespace.
date: 21 Feb 2007 13:34:33 -0800   author:   Joe

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us