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

Re: Custom header parsing in httpapi 1.11



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


I'm trying to connect to a XML Gateway that returns important ID information
in the HTTP Header in a field called "Delivery:" and also returns URL
encoded XML data in the "Delivery:". I sorted out that I can use the
start_xproc() call to invoke a user written global callback that parses this
data (or better get's a chance to see the header data).

Do you mean http_xproc()? I'm not familiar with "start_xproc()".


In priciple this works, although the callback is global - it would be much nicer if it is context related.

I'm not sure what you mean by "global" or "context related" in this sentence. Are there other types of callbacks?


However the HTTP header parsing routines in HTTPAPI seem to be using only
2048 bytes of space and the data we receive is often much larger. I've
modified the routines in HTTPAPIR4 to use 4096 bytes fields and now our
callback gets all data.
I'd like to suggest to modify the http header parsing routines for a more
flexible header length, would this be possible ?

I could increase the size of a response chain in the next release of HTTPAPI. It wouldn't really be flexible -- it'd just be bigger.



Also some kind of custom header parsing callback that is not global would be nice also (although the global callback 'works' somehow).

Again, I'm not sure what you mean by "global". Can you describe how you think it should work? Do you mean that you'd like to register a handler for a particular keyword, instead of getting all HTTP headers? or do you mean that you want the subprocedure to be tracked separately for each program that calls HTTPAPI? This is where I'm getting lost.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------