Published by breki on 07 Jul 2010 at 02:33 pm
System.Web.HttpRequest Paths Cheat Sheet
More a “remember” post for me than a real reference thing, but I think it might be useful to anybody doing more than simple work with HttpRequests.
Example request URL: http://localhost:65107/Services.svc/services?page=30
The table below contains values for various path-related properties of HttpRequest for that example request URL:
| ApplicationPath | / |
| AppRelativeCurrentExecutionFilePath | ~/Services.svc |
| CurrentExecutionFilePath | /Services.svc |
| FilePath | /Services.svc |
| Path | /Services.svc/services |
| PathInfo | /services |
| PhysicalApplicationPath | D:\svn\eEnvoyer\SEPA\EEnvoyer.Server\ |
| PhysicalPath | D:\svn\eEnvoyer\SEPA\EEnvoyer.Server\Services.svc |
| RawUrl | /Services.svc/services?page=30 |
| Url | http://localhost:65107/Services.svc/services?page=30 |

