MozillaZine

Embedding and handling http request

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

Post Posted July 18th, 2014, 1:03 am

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

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 1 guest