cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a memory or size restricion for sending data using HTTP?

Former Member
0 Kudos

Rate upload using HTTP

200 days works, 230 days does not.

Seems like a memory or size issue. Where is a size parameter in HTTP

  1. xmlHttp.send(ls_OTA_HotelRateAmountNotifRQ)

String ls_test2

ls_test2 = xmlhttp.responseText()

String ls_status_text

Long ll_status_code

               

ls_status_text = xmlhttp.StatusText

ll_status_code = xmlhttp.Status

               

//Messagebox("ls_status_text", ls_status_text)

//Messagebox("ll_status_code", ll_status_code)

//Messagebox("ls_test2", ls_test2)

IF ll_status_code = 200 AND ls_status_text = "OK" THEN

                IF  Pos(ls_test2, "<Success />", 1) > 0 THEN

                                Messagebox("InnLinK Rate Load", "Full year of rates loaded successfully")

                ELSE

                                Messagebox("NOT SUCCESSFUL", String(ll_status_code) + ": " + ls_status_text)

                END IF

END IF  

I get the message      NOT SUCCESSFUL   200: OK because the "<Success />" is not found and the reciving party has no record of what I am trying to send them.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190719
Active Contributor
0 Kudos

You haven't shown the method that you're using to open the request.  A GET request uses the URL to send the data, and a URL is limited to 2048 characters.  There is no limit with a POST request.

http://www.w3schools.com/tags/ref_httpmethods.asp

Former Member
0 Kudos

The limit is set by the server. The HTTP protocol itself has no limit. There is a header you can send called 'Content-Length' but I don't know if having that will allow the server to accept the whole file. You will have to try it and see. Check the limit configuration on your server.

Former Member
0 Kudos

How do check the limit configuration on the server? The server is a windows 2008

Below, I Included more of the code.

OLEObject xmldoc, xmlhttp

String Http_Name, ls_open

xmlhttp = CREATE OLEObject

xmlhttp.ConnectToNewObject("Microsoft.XMLHTTP")

ls_open = "https://pms.travlynx.com/WSOTAService.aspx?HotelCode=" + hotel_id

xmlhttp.open("POST", ls_open, false);

xmlHttp.send(ls_OTA_HotelRateAmountNotifRQ)

String ls_test2

ls_test2 = xmlhttp.responseText()

String ls_status_text

Long ll_status_code

   

ls_status_text = xmlhttp.StatusText

ll_status_code = xmlhttp.Status

   

IF ll_status_code = 200 AND ls_status_text = "OK" THEN

    IF  Pos(ls_test2, "<Success />", 1) > 0 THEN

        Messagebox("InnLinK Rate Load", "Full year of rates loaded successfully")

    ELSE

        Messagebox("NOT SUCCESSFUL", String(ll_status_code) + ": " + ls_status_text)

    END IF

END IF   

Former Member
0 Kudos

In IIS manager click your website on the left and double click 'Request Filtering'. Then click 'Edit Feature Settings' on the right hand side.

Former Member
0 Kudos

currently, I split it up in parts. I will see if this works though. Thanks.