Hello,
I have installed the OpenFire server and Uploaded the strophe library
& samples to Apache web server.
I am trying to run the crossdomain.html sample after I changed the
BOSH_SERVICE variable to the value:
http://localhost:7070/http-bind I have enabled Bosh on the OpenFire server
but I am getting the error:
16, ioError, An error occured preventing completion of the request.
> I have installed the OpenFire server and Uploaded the strophe library
> & samples to Apache web server.
> I am trying to run the crossdomain.html sample after I changed the
> BOSH_SERVICE variable to the value:
> http://localhost:7070/http-bind > I have enabled Bosh on the OpenFire server
> but I am getting the error:
> 16, ioError, An error occured preventing completion of the request.
Where do you get this error from? This doesn't look like any web
browser error I'm familiar with.
I am having similar issue. crossdomain.xml is getting served on port
7070 in my case. The callback passed to connect method just gets
called while connecting to the server (figured it out by the status
code 1). I get a blank response with HTTP status 200 from the server.
When I don't use the Http proxy I get Http status 302. I am not able
to figure out where I am going wrong.
On Dec 13, 2:11 pm, Jack Moffitt <metaj...@gmail.com> wrote:
> > I have installed the OpenFire server and Uploaded the strophe library
> > & samples to Apache web server.
> > I am trying to run the crossdomain.html sample after I changed the
> > BOSH_SERVICE variable to the value:
> >http://localhost:7070/http-bind > > I have enabled Bosh on the OpenFire server
> > but I am getting the error:
> > 16, ioError, An error occured preventing completion of the request.
> Where do you get this error from? This doesn't look like any web
> browser error I'm familiar with.
> I am having similar issue. crossdomain.xml is getting served on port
> 7070 in my case. The callback passed to connect method just gets
> called while connecting to the server (figured it out by the status
> code 1). I get a blank response with HTTP status 200 from the server.
> When I don't use the Http proxy I get Http status 302. I am not able
> to figure out where I am going wrong.
HTTP is sensitive to trailing slashes. You probably need to add a
trailing slash somewhere. I think openfire wants the http bind url to
be /http-bind/ not /http-bind like everyone else. If you forget that
trailing /, it doesn't work.
I ran into this a few days ago when verifying some code on Openfire myself.
On Wed, Dec 16, 2009 at 8:43 AM, Jack Moffitt <metaj...@gmail.com> wrote:
> > I am having similar issue. crossdomain.xml is getting served on port
> > 7070 in my case. The callback passed to connect method just gets
> > called while connecting to the server (figured it out by the status
> > code 1). I get a blank response with HTTP status 200 from the server.
> > When I don't use the Http proxy I get Http status 302. I am not able
> > to figure out where I am going wrong.
> HTTP is sensitive to trailing slashes. You probably need to add a
> trailing slash somewhere. I think openfire wants the http bind url to
> be /http-bind/ not /http-bind like everyone else. If you forget that
> trailing /, it doesn't work.
> I ran into this a few days ago when verifying some code on Openfire myself.
> jack.
> --
> You received this message because you are subscribed to the Google Groups
> "Strophe" group.
> To post to this group, send email to strophe@googlegroups.com.
> To unsubscribe from this group, send email to
> strophe+unsubscribe@googlegroups.com<strophe%2Bunsubscribe@googlegroups.com >
> .
> For more options, visit this group at
> http://groups.google.com/group/strophe?hl=en.
> I cross checked it again, my request goes as
> http:/localhost:7070/http-bind/. I just get a blank response with http
> status 200.
Openfire does not support GET requests to that URL. Are you doing POST
requests or GET requests? I can't tell from your email whether you are
testing Strophe or manually checking in a browser :)
I have embedded strophe in my web application and trying to connect to
Openfire. Strophe is sending out a POST request. The callback in the connect
method gets called only once with status as 1.
On Wed, Dec 16, 2009 at 9:30 AM, Jack Moffitt <metaj...@gmail.com> wrote:
> > I cross checked it again, my request goes as
> > http:/localhost:7070/http-bind/. I just get a blank response with http
> > status 200.
> Openfire does not support GET requests to that URL. Are you doing POST
> requests or GET requests? I can't tell from your email whether you are
> testing Strophe or manually checking in a browser :)
> jack.
> --
> You received this message because you are subscribed to the Google Groups
> "Strophe" group.
> To post to this group, send email to strophe@googlegroups.com.
> To unsubscribe from this group, send email to
> strophe+unsubscribe@googlegroups.com<strophe%2Bunsubscribe@googlegroups.com >
> .
> For more options, visit this group at
> http://groups.google.com/group/strophe?hl=en.
On Wed, Dec 16, 2009 at 9:36 AM, Raj <bhim...@gmail.com> wrote:
> I have embedded strophe in my web application and trying to connect to
> Openfire. Strophe is sending out a POST request. The callback in the connect
> method gets called only once with status as 1.
> Raj
> On Wed, Dec 16, 2009 at 9:30 AM, Jack Moffitt <metaj...@gmail.com> wrote:
>> > I cross checked it again, my request goes as
>> > http:/localhost:7070/http-bind/. I just get a blank response with http
>> > status 200.
>> Openfire does not support GET requests to that URL. Are you doing POST
>> requests or GET requests? I can't tell from your email whether you are
>> testing Strophe or manually checking in a browser :)
>> jack.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Strophe" group.
>> To post to this group, send email to strophe@googlegroups.com.
>> To unsubscribe from this group, send email to
>> strophe+unsubscribe@googlegroups.com<strophe%2Bunsubscribe@googlegroups.com >
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/strophe?hl=en.
I got this working finally. Firefox with firebug enabled was the problem. http://code.stanziq.com/strophe/ticket/57 Does anyone know what configuration changes are needed to connect to a tigase server using strophe?
On Wed, Dec 16, 2009 at 11:03 AM, Raj <bhim...@gmail.com> wrote: > Can please you tell me how to figure out if the strophe request is indeed > hitting the http-bind port of openfire?
> Thanks > Raj
> On Wed, Dec 16, 2009 at 9:36 AM, Raj <bhim...@gmail.com> wrote:
>> I have embedded strophe in my web application and trying to connect to >> Openfire. Strophe is sending out a POST request. The callback in the connect >> method gets called only once with status as 1.
>> Raj
>> On Wed, Dec 16, 2009 at 9:30 AM, Jack Moffitt <metaj...@gmail.com> wrote:
>>> > I cross checked it again, my request goes as >>> > http:/localhost:7070/http-bind/. I just get a blank response with http >>> > status 200.
>>> Openfire does not support GET requests to that URL. Are you doing POST >>> requests or GET requests? I can't tell from your email whether you are >>> testing Strophe or manually checking in a browser :)
>>> jack.
>>> --
>>> You received this message because you are subscribed to the Google Groups >>> "Strophe" group. >>> To post to this group, send email to strophe@googlegroups.com. >>> To unsubscribe from this group, send email to >>> strophe+unsubscribe@googlegroups.com<strophe%2Bunsubscribe@googlegroups.com > >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/strophe?hl=en.
> I got this working finally. Firefox with firebug enabled was the problem. > http://code.stanziq.com/strophe/ticket/57 Does anyone know what > configuration changes are needed to connect to a tigase server using > strophe?
You shouldn't need anything different except the bosh endpoint url you pass into the Strophe.Connection constructor. I'm not sure what ports/path Tigase uses by default though.