PocketPuTTY.net Forum Index
PocketPuTTY.net
PuTTY in your pocket!
Reply to topic
pocketPuTTY needed feasure
bebox


Joined: 18 Mar 2007
Posts: 2
Reply with quote
Hi great job porting pocketPuTTY on Windows CE
i have to use it , i have no problems using it with a WIFI connexion
but when i'm "on the road" i can't use it because my wireless Edge provider gateway filter acces by User Agent String.
in you don't have the authorized string http/https proxy return a 403 acces denied.

is it possible to add Custom Agent string settings in pocketPuTTY ?

seriously i will pay for it if you need Wink

i hope you will add this feature in the future version of pocketPuTTY

Kind regards BeBoX
View user's profileSend private message
bebox


Joined: 18 Mar 2007
Posts: 2
Reply with quote
hi it's me again : i have found what is to do but no way to download source package :( only file by file :(

in file proxy.c you only have to edit this part :
Code:
int proxy_http_negotiate (Proxy_Socket p, int change)
{
    if (p->state == PROXY_STATE_NEW) {
   /* we are just beginning the proxy negotiate process,
    * so we'll send off the initial bits of the request.
    * for this proxy method, it's just a simple HTTP
    * request
    */
   char *buf, dest[512];

   sk_getaddr(p->remote_addr, dest, lenof(dest));

   buf = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",
         dest, p->remote_port, dest, p->remote_port);
   sk_write(p->sub_socket, buf, strlen(buf));
   sfree(buf);


and edit the last line to replace it by :
Code:
buf = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\nuser-agent: portalmmm/2.0 N500i(c20;TB)\r\n",
         dest, p->remote_port, dest, p->remote_port);
   sk_write(p->sub_socket, buf, strlen(buf));
   sfree(buf);


as you can se we put the user string directly in connect string (for my provider i need to have this user agent to pass thru imode proxy)

if someone can help me by compiling pocketPuTTY this this modification ... (no way to do myself , because no way to download a source pakage :( )

please help
View user's profileSend private message
Proxy activation
ericd


Joined: 10 May 2007
Posts: 1
Location: France
Reply with quote
Hi Bebox,

Your modification are not sufficient because I think that for the moment Proxy are not activated nor in configuration and then nor in execution.

But I try to comment some line in proxy.c on function new_connection()
mainly :
" if (cfg->proxy_type != PROXY_NONE && proxy_for_destination(addr, hostname, port, cfg))"
and
"
// if (cfg->proxy_type == PROXY_HTTP) {
ret->negotiate = proxy_http_negotiate;
/* } else if (cfg->proxy_type == PROXY_SOCKS4) {
ret->negotiate = proxy_socks4_negotiate;
} else if (cfg->proxy_type == PROXY_SOCKS5) {
ret->negotiate = proxy_socks5_negotiate;
} else if (cfg->proxy_type == PROXY_TELNET) {
ret->negotiate = proxy_telnet_negotiate;
} else {
ret->error = "Proxy error: Unknown proxy method";
return (Socket) ret;
}
*/
"
Then hardly replace proxy host and ip and it works!!! ;=)

That mean it just miss the proxy configuration page.
As I just arrive on this forum I don't know if someone is working on proxy configuration.
If nobody it may be a pleasure to help the developpement team as they really do a great job.
View user's profileSend private message
pocketPuTTY needed feasure
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT + 1 Hour  
Page 1 of 1  

  
  
 Reply to topic