> see nsIHttpChannel. it inherits from nsIChannel, which inherits from
nsIRequest.

you can use nsIObserverService to hook your application up to receive notifications about HTTP requests and responses. nsIHttpProtocolHandler.idl documents these observer topics.

see the online xpcom book (http://www.mozilla.org/projects/xpcom/book/cxc/) for more info on using nsIObserverService to intercept various Gecko events.

if you have any questions, don't hesistate to ask.

-darin

Alright, but I don't understand how mozilla send parameters to HTTP servers. I mean there are two common ways to send informations :


1) GET for URLs
http://www.some-site.com/some-page.ext?param1=value1&param2=value2
HTTP request look like :
GET /some-page.ext?param1=value1&param2=value2 HTTP/1.X
...

2) POST for FORMs
http://www.some-site.com/some-page.ext and then there is something in request content.
HTTP request look like :
GET /some-page.ext HTTP/1.X
...
\n\n
====================someseparator============
param1=value1
====================someseparator============
param2=value2



I known all HTTP request fields are accessible like user-agent, referrer, host, ... But then for user-parameters can I access them the same way as common HTTP-parameters ?


I mean can I use nsIHTTPChannel::GetRequestHeader(...), nsIHTTPChannel::SetRequestHeader(...) and nsIHTTPChannel::VisitRequestHeaders(...) to check and then modify user-parameters ?

Regards

Nitro
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to