public

public

  • NA
  • 2
  • 0

Proxy Server / Encoding (Pramod Singh)

Jul 21 2004 7:23 AM
hi there's a web proxy sample in c# at: http://www.c-sharpcorner.com/internet/web_proxy.asp i'm trying to implement something similar and have two questions about it: 1. i fell that the receiving process (just before socket.shutdown) will not work this way because either the while condition will be true (when something is received) or the socket.receive method will block (when nothing is received). ok, this is more a remark than a question. 2. the example works with html files but i can't get it to work with zip, jpg, exe and others. actually jpg works when using the encoding.unicode (instead of ascii) functions, but the others won't. any ideas how to (correctly) get around this (encoding?) problem? thx in advance