You could do this using mod_rewrite in apache alone, if you can find no
better way to do it, if your app is apache-fronted.
But it's not as obvious to me as it is to you that "you ought to be
able to do everything through a URL that you can using a complete
interface to HTTP." I guess it is convenient for debugging though.
LeVan,Ralph wrote:
> I've been sensing a flaw in HTTP for some time now. It seems like you
> ought to be able to do everything through a URL that you can using a
> complete interface to HTTP. Specifically, I'd love to be able to
> specify values for HTTP headers in a URL.
>
>
>
> To plug that gap locally, I'm looking for a java servlet filter that
> will look for query parameters in a URL, recognize that some of them are
> HTTP Headers, strip the query parms and set those Headers in the request
> that my java servlet eventually gets.
>
>
>
> Does such a filter exist already? I've looked and not been able to find
> anything. It seems like the work of minutes to produce such a filter.
> I'll be happy to put it out as Open Source if there's any interest.
>
>
>
> Thanks!
>
>
>
> Ralph
>
>
|