Hi all,

I just want to write a simple proxy to redirect client to different URLs. Say all users call the proxy server with the same URL and the proxy server redirect them to different URLs. How can I do such thing, can you please anyone comment on this.

Thanks a lot

Member Avatar for jencas

You need to map the input url/user to an output url, so maybe to use a

map<string, map<string, string> >

with

first string: input url
second string: user
third string: output url

would be an appropriate solution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.