Topazstix / sandrop

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

custom plugin error #106

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hi. i want make custom plugin. but this error. help me.

Original issue reported on code.google.com by labess...@gmail.com on 31 Mar 2014 at 2:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hm... have one idea what could be.
Because you delete header and then adding new one, Host header is last one.
Your proxy probably check first one for Host...

Will try to force that Host is first one or check how you do this in script.

Original comment by supp.san...@gmail.com on 3 Apr 2014 at 7:01

GoogleCodeExporter commented 8 years ago
Instead of 
//////////////
if (request != null){
    result = false;
    intercept_response = false;
    request.deleteHeader("Host");
    request.addHeader("Host", "host-value");
}
//////////////////
you can try with 
///////////////////
if (request != null){
    request.setHeader("Host", "host-value");
}
//////////////////

Original comment by supp.san...@gmail.com on 3 Apr 2014 at 7:18

GoogleCodeExporter commented 8 years ago
this make more sense, but same result.

Original comment by labess...@gmail.com on 4 Apr 2014 at 1:12

GoogleCodeExporter commented 8 years ago
bummer
now will look with wireshark byte by byte what is different 
the last one is to came to your country and tested myself :)

Original comment by supp.san...@gmail.com on 4 Apr 2014 at 5:07

GoogleCodeExporter commented 8 years ago
Maybe may not be a problem in sandroproxy. Because when connecting vpn 
happening same problem. When I wrote operator proxy does not connect directly 
but connecting with proxy server applications. Connecting directly with tg http 
and similar programs in Windows. I do not understand much.

Original comment by labess...@gmail.com on 4 Apr 2014 at 6:15

GoogleCodeExporter commented 8 years ago
Looked byte by byte and request are identical. If goes just by SandroProxy or 
SandroProxy and com.icecoldapps.proxyserver

So far I presume that if com.icecoldapps.proxyserver is involved then works.

Original comment by supp.san...@gmail.com on 4 Apr 2014 at 6:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
it does not add to the front. it changed with my value.

Original comment by labess...@gmail.com on 5 Apr 2014 at 3:07

GoogleCodeExporter commented 8 years ago
Can you try with some more common append 
for example 
HttpUrl newUrl = new HttpUrl("http://www.myvalue.com/test?param=1");

Original comment by supp.san...@gmail.com on 5 Apr 2014 at 3:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Something like this

HttpUrl oldone = request.getURL();
HttpUrl newOne = new HttpUrl(oldone.toString() + "/test?param=1");
request.setURL(newOne);

Original comment by supp.san...@gmail.com on 5 Apr 2014 at 5:18

GoogleCodeExporter commented 8 years ago
yes very good for back method. is it possible to pre?

HttpUrl oldone = request.getURL();
HttpUrl newOne = new HttpUrl("/test?param=1" + oldone.toString());
request.setURL(newOne);

Original comment by labess...@gmail.com on 5 Apr 2014 at 5:34

GoogleCodeExporter commented 8 years ago
Yes,
But with more logic to write

http://code.google.com/p/sandrop/source/browse/projects/SandroProxyLib/src/org/s
androp/webscarab/model/HttpUrl.java

HttpUrl oldone = request.getURL();

StringBuffer buff = new StringBuffer();
buff.append(_oldone.getHost()).append(":").append(__oldone.getPort());

HttpUrl newOne = new HttpUrl("http://www.example.com@" + 
oldone.direct(buff).toString());
request.setURL(newOne);

Original comment by supp.san...@gmail.com on 5 Apr 2014 at 6:03

GoogleCodeExporter commented 8 years ago
Yes, thank you very much. You're so good thanks for the help.

Original comment by labess...@gmail.com on 5 Apr 2014 at 6:20

GoogleCodeExporter commented 8 years ago
Is it possible to delete this topic? There are tricks about mobile operators. I 
do not want to see what I wrote in the google search results. Could you delete, 
please? Thanks.

Original comment by labess...@gmail.com on 6 Apr 2014 at 4:39

GoogleCodeExporter commented 8 years ago
Yes,
Will delete all your links and video links.
Please check if I forget something.

Original comment by supp.san...@gmail.com on 6 Apr 2014 at 6:25

GoogleCodeExporter commented 8 years ago

Original comment by supp.san...@gmail.com on 10 Apr 2014 at 4:11

GoogleCodeExporter commented 8 years ago
This bug report deviated a bit. But to answer the original question, to get 
Custom Plugin dex compiling, you also need to set the sdk.dir in 
SandroProxyLib/local.properties as well as SandroProxyPlugin/local.properties

On my Windows 7 box anyway.

Original comment by georgiec...@gmail.com on 26 Nov 2014 at 6:45

GoogleCodeExporter commented 8 years ago
Thanks for info. Will state in readme.txt also that requirements.
Will upgrade also to latest android sdk and ndk tools when updating public git.

Original comment by supp.san...@gmail.com on 26 Nov 2014 at 9:09