liyuanwei / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

Problem about Xcap Root #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I launch imsdroid on other service
2.I set xcap-root to http://192.168.11.45:7077(my service provider give it to 
me)
3.I write a demo to send a xcap package,but problem occurs,the xcap uri don't 
have xcap-root

What is the expected output? What do you see instead?
"/http://192.168.11.45:7077/org.openmobilealliance.pres-rules/users/sip:xxxxxxxx
xx/pres-rules/~~/ruleset/rule%5B@id=%22rcs_allow_services_anonymous%22%5D 
HTTP/1.1" is the expected headline, but the actual result is 
"/org.openmobilealliance.pres-rules/users/sip:xxxxxxxxxx/pres-rules/~~/ruleset/r
ule%5B@id=%22rcs_allow_services_anonymous%22%5D HTTP/1.1"

What version of the product are you using? On what operating system?
IMSDroid/v1.1.327, on Android 2.2 system.

Please provide any additional information below.
This is my xcap package send out:
PUT 
/org.openmobilealliance.pres-rules/users/sip:xxxxxxxxxx/pres-rules/~~/org.openmo
bilealliance.pres-rules/ruleset/rule%5B@id=%22rcs_allow_services_anonymous%22%5D
 HTTP/1.1\r\n

Original issue reported on code.google.com by yuwenbin...@gmail.com on 16 Dec 2010 at 1:14

GoogleCodeExporter commented 9 years ago
Here is the source code of my demo...Are there any errors?

Original comment by yuwenbin...@gmail.com on 17 Dec 2010 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
Your code is correct. And the result is also correct.
The missing part (xcap-root) is added in the HTTP host header and this is how 
HTTP protocol works. For example, trying to access to 
"http://google.com/test/demo" will lead to:
GET  /test/demo \r\n
Host: google.com \r\n
\r\n

Could you please send the network trace (wireshark)?

Original comment by boss...@yahoo.fr on 17 Dec 2010 at 2:51

GoogleCodeExporter commented 9 years ago
This is the network trace...

Original comment by yuwenbin...@gmail.com on 17 Dec 2010 at 3:11

Attachments:

GoogleCodeExporter commented 9 years ago
This is the expected result. You can copy/past the full request uri in your 
browser and you will have the same result. I don't see want is the problem.

Original comment by boss...@yahoo.fr on 17 Dec 2010 at 3:16

GoogleCodeExporter commented 9 years ago
If I want to capture the network trace of IMSDroid's xcap package, Which port 
should I listen?Since I have listened port 7077,but I got nothing...

Original comment by yuwenbin...@gmail.com on 17 Dec 2010 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 24 Dec 2010 at 12:35