[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTP Get w/ Additional Header Info



On 6/29/2010 12:05 PM, Stephen Piland wrote:
>
> Is it possible to send additional header info when doing a HTTP Get?
> Kind of like parameters for a specific request?

Yes, you can add HTTP headers with the HTTP_POINT_ADDL_HEADER exit proc. 
  This would be a very unusual thing to do, but it's certainly doable.

> Or is a URL with that info `embedded' a better way to do it?

That would be the normal way to do it...

Technically, HTTP headers should be used when influencing how the HTTP 
protocol works, and data embedded in the URI should be used to influence 
how an application works.

So for example, if HTTPAPI (or a browser) wanted to communicate 
something to Apache (or IIS) on the other end, it should be using HTTP 
headers.  But if your program (or JavaScript, or the user himself) 
wanted to communicate somethign to the program that Apache (or whatever) 
runs on the server side, then it should be using data in the URI.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------