Re: What's the right way to do POST from an embedding app?

2004-07-03 Thread Anton Bar
I made few mistakes in my previous note, following attached a working code. Please note that mystrstream is a little wrapper for ostrstream. Its code is also attached below. Greetings from Israel, Anton. _ static inline bool

Re: What's the right way to do POST from an embedding app?

2004-06-30 Thread Anton Bar
I'm not sure I understood correctly, but how about smth like this: // // Assume: //valid m_spBrowser of type nsCOMPtr m_spBrowser; //url string should contain valid URL //data string should contain posted data e.g. "var1=val1&var2=val2" // nsCOMPtr webNavigation; m_spBrowser->QueryInt

What's the right way to do POST from an embedding app?

2004-06-22 Thread Ed Burns
Back in the bad old days I had to get the presContext from the docShell, then get the link handler from the presContext, then call OnLinkClick() to post data from my embedding app. Is this still the best way to do it, or is there a more "correct" way? Thanks, Ed _