My Socks proxy resolves hostnames from "www.google.com.foo.bar" to "www.google.com". What do I have to do that the Google server gets the right host value "www.google.com" and not "www.google.com.foo.bar"?
I think GET is working well, but I can not check it yet (correct host and request headers). POST is definitly not working. I get a "Not Found" error. Probably because of wrong Host header.
What do I have to change? Could you help me please.
You can see the exact HTTP request sent by setting the http.SessionLogFilename property to the path of a file that the Chilkat.Http object will create/append when sending requests. Once you see what is actually sent, it might provide the clue as to what is wrong..
answered May 08 '13 at 11:53
Ah, nice feature. Redirection was the problem. Chilikat is doing a bad request if you get redirected.
It doint the following redirecting GET request:
I think I have to define the order and the values of the Chilikat.Http object, not just for HttpRequest. Maybe then Redirection is working with the same headers as the HttpRequest object.
Question: I'm using Send- and SaveCookies from Chilikat.Http. How could I change the order of the headers? Cookie header must be before Connection: Keep-Alive not at the end like the following:
answered May 08 '13 at 18:40