I have some problems with the URL dispatching. There’re my rules:
urlpatterns += patterns('proxy.views',
(r'^$', 'proxyviews.index'),
(r'^go/(?P<url>\S+)', 'proxyviews.go'),
(r'^proxy/(\S+)$', 'proxyviews.proxy'),
)
If I give it the next URL: “http://myproxy.com/go/http://foo.bar” it will be “http://myproxy.com/go/http:/foo.bar” — with one slash after “go/http:”. I’m not sure what’s wrong here. Do you have any ideas? Thanks.
Actually in your url you are giving raw string so “\” means “\” only. For this to work better use url encode.
For eg instead of
you should give url as
Moreover you should also encode “%”, so better it be
thanks