PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB20] Windows Server 2012 R2 (IIS 8) can´t response large requests
[WB20] Windows Server 2012 R2 (IIS 8) can´t response large requests
Iniciado por guest, 27,nov. 2015 13:20 - 8 respuestas
Publicado el 27,noviembre 2015 - 13:20
Hi,

I have a problem with a Windows 2012 R2 Server with IIS8.

I can´t receive a large HTTPRequest (filetoarray from a query, then serialize())

A smaller works. Same code at my Laptop with win7 and IIS7.5 works.

The httpresponse is empty, no errorcodes at all.

Any ideas ?
Publicado el 27,noviembre 2015 - 13:29
Michael

Pls chk conf file in IIS as you might reach the default max limit ie
"http request limit exceeded"

HTH

King
Publicado el 27,noviembre 2015 - 14:05
Hi,

I don´t have any config file at my webserver at my laptop. Why should IIS8 works different as IIS7.5 in that case ?

If can download GB of data, why not a 20 MB httpresponse ?
Publicado el 27,noviembre 2015 - 14:42
Hi Michael,

from the top of my head, IIS has THREE different time out settings. One is for the SIZE of transfert and is listed in the webdev help, and 2 are real time outs (one for cgi, the other for???)

If any of them isreadh during a query, you'll have this kind of problems.

And of course yo have a setting file both on the server and on your laptop, or your web sites couldn't work at all

Best regards
Publicado el 27,noviembre 2015 - 14:52
Hi Fabrice,

the request needs 5 seconds, the result (I tested it with fsavebuffer(myBuffer)) is 1,7 MB

This can´t be a limit ....

For a year I had a similar problem with the webservice and you give me the hint with the *.awp page.

Now another project, a new server ... and the old problem :-(
Publicado el 27,noviembre 2015 - 19:01
Hi Micahel
Quote
Michael Drechsel

This can´t be a limit ....

Sure it can... Are you doing your httprequest in GET mode (size limit, as it's supposed to be a simple URL) or in POST mode?

For this =kind of things you need post

Best regards
Publicado el 28,noviembre 2015 - 11:29
Yes, its httppost.

cmyresponse = HTTPSend(cmyrequest)


cMyResponse shows:
Content= RoughHeader="" StatusCode=0 DescriptionStatusCode="" ContentType="" Header=

Completly empty. An array with 5000 members works, with 10.000 not.
At my Laptop both works. It must be a Win2K12 Server thing, or an IIS8 issue. I don´t know.

Anybody using IIS8 with httpSend ????
Publicado el 28,noviembre 2015 - 13:38
I try for WINDOWS SERVER 2012 OR WINDOWS SERVER 2012 R2
and pls see the link as below:

https://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits

esp.
in section of Configuration
ATTRIBUTES
maxAllowedContentLength Optional uint attribute.
Specifies the maximum length of content in a request, in bytes.
The default value is 30000000, which is approximately 28.6MB. <<<<<

Let us know if this is it or not.

HTH

King
Publicado el 29,noviembre 2015 - 13:27
Ok, after 2 days try and error and loosing of a couple of my hairs:

cMyresponse...timeout is the reason why it works at my laptop and not at my server, which stands in the company.

The timeout is per default=20 seconds, the request needs 22 seconds with the server and only 5 seconds at my laptop.

WARNING: WEBDEV gives no error code in the MyResponse..StatusCode, so it is difficult to catch the error, if the connection is to slow for the request.