![]() |
|
|
|
|
(#1)
|
|
|
Junior Member
Amateur Member
Posts: 22
Join Date: 11 Jun 2007
Country:
|
What a coincidence! This week I've been working on the HTTP mangling too! I've come up with the following Perl script which acts as an HTTP proxy - should work in any browser on any OS. You'll need Perl installed, as well as the LWP::UserAgent module:
http://search.cpan.org/~gaas/libwww-...P/UserAgent.pm (was already installed on my Ubuntu machine) and the HTTP::Proxy module: http://search.cpan.org/~book/HTTP-Pr.../HTTP/Proxy.pm Here's the script, which is very simple. It only works for HTTP, so don't try using it for HTTPS, FTP or other protocols - set your browser to go to WIND's proxy direct. I haven't done it, but it might be feasible to do a two-pass process to avoid the 1MB restriction by trying the WIND proxy, and if that fails redirect to another proxy (eg one using an SSH tunnel as I detailed above). Code:
#!/usr/bin/perl
use HTTP::Proxy;
use LWP::UserAgent;
# create a filter to change the Content-Type header
{
package FilterPerl;
use base qw( HTTP::Proxy::HeaderFilter );
sub filter {
my ( $self, $headers, $message) = @_;
# grab the header, modify it, then write it back into the headers
$ct=$headers->header('Content-Type');
$ct =~ s!application/xhtml\+xml!text/html!g;
$headers->header('Content-Type' => $ct);
}
}
# create a new object to represent our onward connection - ie through
# WIND's proxy
my $fetcher = LWP::UserAgent->new();
$fetcher->proxy(['http','https','ftp','gopher'], 'http://192.168.200.10:9401/');
$fetcher->no_proxy('localhost');
# create our own proxy on localhost port 3128
my $proxy = HTTP::Proxy->new( port => 3128, agent => $fetcher );
# attach a filter to alter the responses returned by WIND's proxy
$proxy->push_filter( mime => undef, response => FilterPerl->new() );
# start the proxy running
$proxy->start;
|
|
|
|
|
(#2)
|
|
|
Senior Member
Prepaid Fan
Posts: 153
Join Date: 07 Jul 2006
Country:
|
It's been suggested I use privoxy on this thread:
http://www.internettablettalk.com/fo...404#post180404 Have I got perl on the N810? I doubt it - it hasn't even got a decent text editor. But I expect it's available. Thanks for the suggestion. Some stuff to work on here while I'm anchored in a bay with my feet up, a Mythos beer or two to hand.... |
|
|
|
|
(#3)
|
|
|
Junior Member
Newbie
Posts: 3
Join Date: 13 May 2008
Country:
|
First of all, I want to thank you for this very interesting post. I go to Greece every year in summer to spend my holidays... and I love Greece (my grandmother is greek). Every year the problem is always the same: internet. So I hope next July to apply the counsel of this post.
But I want to ask you: 1) Where should I buy a new prepaid card wind? every kiosk? 2) On the website Wind have read that i should send a message ‘PLUS’ to 19349 (and not 349 as indicated in the post) 3) After I buy the sim, are there already the WIND plus settings on the phone? 4) What should I do to use the phone with my laptop? I mean... you wrote: " In order to use the WIND plus service with a computer tethered to your mobile phone, you have to enter the following settings to your computer: access point "gwap.b-online.gr", username "wap", password "wap" for your cellphone's PC suite and you also have to set the following proxy server on your web browser IP: 192.168.200.10 port: 9401 as well as on the windows connections panel (for IE and MSN Messenger)". Where should I cahnge exactly this parameters for the browser? In whick window? 5) is there a way to download more than 1 MB? I have seen on the posts that may be there is a way, but I have not understood completely Thank you very much for your answers |
|
|
|
|
(#4)
|
||||||
|
Senior Member
Prepaid Fan
Posts: 153
Join Date: 07 Jul 2006
Country:
|
A Greek would best answer that, but in Corfu town there were several shops run by Wind, Cosmote, and Vodafone. I bought the Wind card and a Cosmote card at these. (It seemed much like Italy.)
Quote:
Quote:
Quote:
Proxy: I'm using Firefox (on Linux) and the proxy is set in the Firefox configuration - under 'connection'. Quote:
Quote:
Take a look also at the numerous Cosmote data options - more expensive but perhaps simpler. (I bought a Cosmokarte as well. Does anybody know what SMS to send to get a balance?) |
|||||
|
|
|
|
(#5)
|
|
|
Junior Member
Amateur Member
Posts: 17
Join Date: 17 Jun 2008
Country:
|
was/is ''Wind Plus non-stop'' not originally to be a WAP-only service? could this not be the reason
that certain things are blocked and cannot be made to work? even if it worked before, maybe they got smart and noticed how many users were actually on laptops etc. see my post on the sticky above: i have a feeling the service is turned off, or at least not offered anymore to new customers. wish somebody in GR cld check and confirm this, either way, as i will only be there late july. greetings - heinz - |
|
|
|
|
(#6)
|
||||
|
Senior Member
Prepaid Fan
Posts: 153
Join Date: 07 Jul 2006
Country:
|
Quote:
Quote:
Quote:
As I said above, I'd use and pay for a proper internet service if there was one at a reasonable price - like with WInd Italy. (Are you reading this, Wind GR?) |
|||
|
|
|
|
(#7)
|
|
|
Junior Member
Amateur Member
Posts: 17
Join Date: 17 Jun 2008
Country:
|
>> I'd use and pay for a proper internet service
thats probably the issue, because what is paid now (under 4 EUR/month) is plain luck on our side. and if it is correct that thousands of students found out, and were using that 'service', i would not like, but understand WINDs reaction - comparable real services, if at all available for tourists, being 40-100 EUR/m. has anybody ever used that service on modems like the HUAWEI E220? what would the setting be? the EU has come up with a new regulation (yesterday?), and as far as i know, greece would be included in some reduced cost schemes that ORANGE (and others) immediately announced. give it a few days to be sorted out. either way. greetings - heinz - |
|
|
|
![]() |
|
|