Embedding and handling http request

Discuss building things with or for the Mozilla Platform.
Post Reply
kenduron
Posts: 1
Joined: July 18th, 2014, 12:55 am

Embedding and handling http request

Post by kenduron »

Hello,

I am using gecko in .net environment by geckofx
When a request would be sent to the server

example
--
GET /data/moredata/file.me HTTP/1.1
Host: localhost
--

I __DONT__ want that this request goes to a server using tcp/ip-connection with a port - for example 80.

I want to intercept the "sending" of the request-string (GET /data/...), parse it and create some content dynamically according to URL (file.me --> Maybe create .NET-CLass at at runtime "FileMe") and provide the response for http on my own.

!i am not allowed to create open port in trusted environment!

can you give me a hint?

do i need to create new http-protocol handler and channel (nsiProtocolHandler replacing default "http-nsiProtocolHandler")

thanks, it really urgent. :-k
Post Reply