Re: How to cheat the web sever

Giganews Newsgroups
Subject: Re: How to cheat the web sever
Posted by:  Remy Lebeau (TeamB) (gambit…
Date: Fri, 26 Sep 2003

"geyao" <gey…> wrote in message

> When I use TIdHTTP to post something, The sever always
> refuse.(beacause the function chkpost return false)
> How can I do to cheat the web server?

Have a look at the Request.Referer subproperty, ie:

    IdHTTP1.Request.Referer := 'whatever';

You can't set the SERVER_NAME attribute that the script is looking for, as
that is taken from the server itself which the script is running on.  But
you can set the TIdHTTP's Referer to match what the script is looking for,
assuming you know what the server name is to begin with.  For example, if
the server name is "", then set the Referer to something like

    IdHTTP1.Request.Referer := '';
    IdHTTP1.Request.Referer := '';




In response to

How to cheat the web sever posted by geyao on Fri, 26 Sep 2003