>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Custom HTTP Headers - reversed
brent.hildebrand
Custom HTTP Headers - reversed
Posted: Tuesday, May 11, 2004 6:55 PM (EST)

It appears that the data entered for Custom HTTP headers is reversed.  Here is a sample header from WebServices:

 

HTTP/1.0 200 OK
Server: APL2000 Web Services/1.0
Date: Tue, 11 May 2004 15:46:04 GMT
Last-Modified: Fri, 21 Nov 2003 20:24:55 GMT
Connection: close
Content-Type: image/jpg
Content-Length: 725760
test2 test1:
value name:

 

observer the last item in the list.

Note, I enter "name" for the header name, and "value" for the value.  The result is:

value name:

 

Should it not be:

name:  value

 

??

 

Additionally, the registered file type for JPG is  image/jpeg, not image/jpg, RFC1494 (I think)

 

Brent


Comments:

Author Thread:
Jairo.Lopez
Custom HTTP Headers - reversed
Posted: Thursday, May 13, 2004 5:54 PM (EST)

A new version of the APL+WebServices (version 1.0.2140.34581) has been posted that take care of this issues.

Thank you for pointing them out.

     

brent.hildebrand
Custom HTTP Headers - reversed
Posted: Thursday, May 13, 2004 6:15 PM (EST)

Will this be included in the Desktop v1.5 beta also?

 

Next question - if I add a custom header for Server:, will it over write the default which points is: APL2000 Web Services/1.0

And about the Content-Type: of  image/jpg, if is image/jpeg, the picture can be viewed in the browser instead of opening an external application.  WebServices is not allowing the viewing of JPG files I think because the type is not image/jpeg.

 

 

     

Jairo.Lopez
Custom HTTP Headers - reversed
Posted: Thursday, May 13, 2004 6:23 PM (EST)

These changes will be available in the Desktop v1.5 beta.

The Content-Type was also changed from image/jpg to image/jpeg. The APL+WebServices allows you to overwrite the Content-Type in two ways:

  1. Setting the content-type result option
  2. Using the "Registered File Types" option of the web server. You can find this option under the "Documents" tab.

Right now, if you defined a custom header "SERVER", the AWS will send both the default SERVER (APL2000 Web Services/1.0) and your custom header.

 

     

brent.hildebrand
Custom HTTP Headers - reversed
Posted: Thursday, May 13, 2004 10:58 PM (EST)

Jairo - I v1.5.1 beta of the desktop WebServices.  I do not see any custom headers now, reversed or otherwise. 

 

Thanks for pointer on registered file types...

     

brent.hildebrand
Custom HTTP Headers - reversed
Posted: Thursday, May 13, 2004 11:05 PM (EST)
OK - Custom headers are now showing.  What happened??   I'm a bit confused by when changes to a WebServer are applied.  Are they applied immediately, or do they require a restart?  There is no indication that a restart is needed, but sometimes it appears a restart is required.  However, I did not restart this time, and now the headers are present, just not right after I made the changes.  No wait - only one of my custom headers are is showing.  Something is not quite right.  I have two defined in the AWS GUI, but only one shows in the header.  Stop and Start the server, and now the second is showing.  So it appears a restart is required.  This may be documented and I have just missed it?

     

Jairo.Lopez
Custom HTTP Headers - reversed
Posted: Friday, May 14, 2004 10:44 AM (EST)
What version are you using? The APL+WebServices 1.0.2140 or the Desktop Beta 1.5.1

     

brent.hildebrand
Custom HTTP Headers - reversed
Posted: Friday, May 14, 2004 4:45 PM (EST)
Desktop v1.5.1.

     



APL2000 Official Web Site

I don't pretend to understand the Universe - it's a great deal bigger than I am.
-- Thomas Carlyle

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |