Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of characters uploaded and the POST method 3

Status
Not open for further replies.

EwS

Programmer
Dec 30, 2002
398
US
What is the maximum number of characters that can be uploaded using the POST method? For the GET, it's 1024, right?
 
GET: 2kB, few bytes more or less (IE limit)

POST: boring specs don't specify any limit. Depends on server configuration.

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 

Using post, I've successfull transferred 64Kb - and that was back in the days of IE4 and NN4, so I doubt it will be much less in today's newer browsers.

The easy way to tell, EwS, it to test it youself in the browsers that your audience will most likely be using (so maybe IE, Opera, FF, NN, Safari, etc).

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
BillyRayPreachersSon,
Thanks for your input. I am testing it in those browsers, the thing is I can't transfer what I consider a small amount of data, I can't figure what is wrong, that's why I wanted to make sure I'm not reaching the limit in the first place.
 
FYI I just tested POST form with 1MB large text in a single textarea. Works OK - IE, FF, O7.

More info needed - are you trying to upload binaries, what is exactly "small amount of data" etc.

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
I'm using a textarea. After I hit Save, the IIS talks to the ProvideX Web Server using XMLHTTP, which in turn executes a pvx program (which saves the record) and then the page with the textarea gets re-displayed. I noticed that if I enter "too many characters" in the textarea (which is close about 180 characters), the record is not saved and the frame which contains the textarea is not displayed. Besides the textarea, I have text boxes with the data that needs to be passed; if I put less text in those text boxes, I can type more into the textarea, so I'm thinking it's not the textarea limitation, but the amount of data that I'm sending. It looks like the problem is with the ProvideX Web Server, not the browser. I have to do more testing to determine the cause.
 
According to the ProvideX manual, forms sent using the GET method can only send around 100 characters, but for POST, the limit is "a large amount".

So... are you sure you're using the POST method to submit your form?

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
BillyRayPreachersSon,
Thanks a lot for the comment. Can you, please, point me to the link where you got this info from?

This is how I send the request to the ProvideX Web Server -and I verified that the "POST" code gets executed:
Code:
Function Send_Request(varRequest)
    Response.Buffer = True
    Dim objXMLHTTP, xml

    ' Creates an xmlhttp object
    Set xml = Server.CreateObject("Microsoft.XMLHTTP")

    ' Opens the connection to the remote server	 
    xml.Open "GET", Session("tkEBMURL") & varRequest, False

    ' Actually sends the request and returns the data
    xml.Send

    ' Displays the HTML 
    Response.Write xml.responseText
  
    Set xml = Nothing
  End Function


  If Request.ServerVariables("REQUEST_METHOD") = "GET" Then
    varRequest = Request.QueryString("tkRequest")

  Else

    If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
      varRequest = "/" & Request.Form("tkProgram") & "?" & Request.Form
     End If
  End If

  Send_Request(varRequest)

Also, sending more than 100 characters still works...but not 600, for instance.
 
Just FYI: According to MSDN the is a 100KB limit on data passed via POST to an ASP program unless you use Request.BinaryRead instead of Request.Form.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
I went to Google and searched for "ProvideX form post" - it was the second link (the "ProvideX Web Server Reference Manual".

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
BillyRayPreachersSon,
I think it's not the POST method that I'm using...I'm using it to retrieve the values from the form, but when I actually pass them to the ProvideX Web Server, it's the GET:

Code:
xml.Open "GET", Session("tkEBMURL") & varRequest, False

but I'm having hard time with replacing the "GET" with the "POST"...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top