Skip to content

404 Error when attaching #84

@WasserX

Description

@WasserX

Hi, I use a module to communicate to XMPP in different websites and sometimes when I'm trying to attach a session I receive a 404 Not Found from the server after some successful exchange of packages to that same address. I don't know exactly what to post. But for starters I can send a log from wireshark.

POST http://ip-address/xmpp-bosh/ HTTP/1.1
Host: ip-address
Proxy-Connection: keep-alive
Content-Length: 114
Origin: http://localhost
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.79 Chrome/17.0.963.79 Safari/535.11
Content-Type: application/xml
Accept: */*
Referer: http://localhost/barometre/index.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

<body rid='755570483' xmlns='http://jabber.org/protocol/httpbind' sid='74512fe31b8830e03971f540ca241eb28c93099d'/>

HTTP/1.1 200 OK
Via: 1.1 NGRPSIN-PROXY
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 51
Date: Wed, 28 Mar 2012 07:51:35 GMT
Content-Type: text/xml; charset=utf-8
Server: nginx/1.0.10
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type

<body xmlns='http://jabber.org/protocol/httpbind'/>

POST http://ip-address/xmpp-bosh/ HTTP/1.1
Host: ip-address
Proxy-Connection: keep-alive
Content-Length: 153
Origin: http://localhost
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.79 Chrome/17.0.963.79 Safari/535.11
Content-Type: application/xml
Accept: */*
Referer: http://localhost/barometre/index.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

<body rid='755570485' xmlns='http://jabber.org/protocol/httpbind' sid='74512fe31b8830e03971f540ca241eb28c93099d'><presence xmlns='jabber:client'/></body>

HTTP/1.1 200 OK
Via: 1.1 NGRPSIN-PROXY
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 51
Date: Wed, 28 Mar 2012 07:51:36 GMT
Content-Type: text/xml; charset=utf-8
Server: nginx/1.0.10
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type

<body xmlns='http://jabber.org/protocol/httpbind'/>

POST http://ip-address/xmpp-bosh/ HTTP/1.1
Host: ip-address
Proxy-Connection: keep-alive
Content-Length: 114
Origin: http://localhost
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.79 Chrome/17.0.963.79 Safari/535.11
Content-Type: application/xml
Accept: */*
Referer: http://localhost/barometre/index.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

<body rid='755570486' xmlns='http://jabber.org/protocol/httpbind' sid='74512fe31b8830e03971f540ca241eb28c93099d'/>

HTTP/1.1 200 OK
Via: 1.1 NGRPSIN-PROXY
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 95
Date: Wed, 28 Mar 2012 07:51:36 GMT
Content-Type: text/xml; charset=utf-8
Server: nginx/1.0.10
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type

<body xmlns='http://jabber.org/protocol/httpbind' type='terminate' condition='item-not-found'/>

POST http://ip-address/xmpp-bosh/ HTTP/1.1
Host: ip-address
Proxy-Connection: keep-alive
Content-Length: 189
Origin: http://localhost
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.79 Chrome/17.0.963.79 Safari/535.11
Content-Type: application/xml
Accept: */*
Referer: http://localhost/barometre/index.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

<body rid='755570487' xmlns='http://jabber.org/protocol/httpbind' sid='74512fe31b8830e03971f540ca241eb28c93099d' type='terminate'><presence xmlns='jabber:client' type='unavailable'/></body>

HTTP/1.1 404 Not Found
Via: 1.1 NGRPSIN-PROXY
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 0
Date: Wed, 28 Mar 2012 07:51:36 GMT
Content-Type: text/xml; charset=utf-8
Server: nginx/1.0.10
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions