Results 1 to 9 of 9

Thread: limited to a maximum of 2,048 characters [END]

Hybrid View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    18

    limited to a maximum of 2,048 characters [END]

    If you are using the GET method, you are limited to a maximum of 2,048 characters (minus the number of characters in the actual path, of course).

    FROM:
    http://support.microsoft.com/default...NoWebContent=1


    Can I know is it other methods/ functions that allow me passing more than 2048 characters by GET.

    Ps: I want to passing a string of data(more than 2048 characters) by querystring .
    Last edited by leos1981; Aug 25th, 2004 at 03:47 AM.

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    its the querystring that is limited to 2048 characters so you cant use the get method. Use the post mehtod instead

  3. #3
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Echo Dave. Use the post. There is no reason to have all that in the GET method, and you can have over 4000 characters and sometimes more than that in the POST depending on various configurations.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    The HTTP specification imposes no limit on the length of the URL a user agent must accept. I heard somewhere that they are only oblidged to use the first 512 characters.

    If you want to transfer a large amount of information you should get your users to post it through. There is no client side limit on the amount of data you can post, although proxy servers may impose a limit.

    If you want to put large amounts of data in links on your web page I suggest you use an ID which is used server side to retrieve the information you need. This will save on both bandwidth and save your URL's from looking big and ugly. I know that both ASP and PHP have these session managment capabilities.

    Cookies are another option - again though, the client often has limits on the number of cookies stored by each host and the amount of data stored in each one. I heard somewhere that it may be as little as 300 bytes per cookie.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    18
    It is really no way to use GET to pass the data? Actually, I want to pass the data to SAP Bisness Connect, they only provide me a url with querystring (eg: www.abc.com?xml=mydata) to pass my data to them. and my data may be very large, that is y i have to extend the GET characters limit. I am very supprise they (SAP BC) can passing me (large amount of data) by querystring.

  6. #6
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Ask them to provide you with better means. Why can't you just send them a file with the information? And how much are you trying to send?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    18
    Maybe They can make the change, but coz it affected a lot of area and the project oledi finished the user testing and now prepare to rollout. So, if hav choise, I hope can minimize the change.

  8. #8
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    they will have to chnage becuase you cannot extend the get char limit.

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    18
    Thank a lot to everyone. I will try to change the other method to receive the data in order to avoid the character limited problem occured.

    Below are 2 posible solution/suggestion from online friends.
    • On SAP there is obivously a HTTP process running in order for you to send the GET request - firstly, if SAP is running this process then there is no reason why it cannot read a POST request as well. Secondly, rather than using HTTP why not communicate to the server using a custom port and transfer your data that way?


    • One thing I do know is that SAP can read text files. Why not place all the data you want to transfer within a text file that is accessible from both the IIS and SAP servers. Then send a GET request to the SAP server including the filename / location of the text file and its data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width