SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    web_reg_save_param failing to recognise boundary values

    I'm trying to capture a string of XML returned by the server by using web_reg_save_param. The boundary values I'm using are always the same - I've confirmed this by using advanced trace.

    My code is as follows:
    web_reg_save_param("XMLResponse",
    "LB=<?xml version",
    "RB=</OP>",
    LAST);

    This should capture virtually the whole XML string (some 9000 bytes). However, my script is refusing to identify both boundaries, even though I know that they are both present. If I null the right boundary value, then all the data is captured. Similarly, if I adjust either boundary value so that it falls within a few bytes of the other, the call works. I have proved by this method that both values may be found. Can anyone explain what's happening or offer suggestions?

    Thanks.

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: web_reg_save_param failing to recognise boundary values

    Hi All,

    Someone on the Mercury site suggested the solution and it all came flooding back. I needed to set web_set_max_html_param_len to a suitably high number to get it to cope with the large search buffer. Problem solved!

  3. #3
    Moderator
    Join Date
    Aug 2001
    Location
    NC
    Posts
    6,018
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: web_reg_save_param failing to recognise boundary values

    Try this before your web_reg_save_param() statement.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> web_set_max_html_param_len(&quot;10000&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Default capture is 256 bytes, so if your right boundary condition does not appear within the 256 byte window nothing may be captured.
    James Pulley

    Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.

    Put us to the test, skilled expertise is less expensive than you might imagine.

    Twitter: @LoadRunnerBTH @PerfBytes

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:54 AM.

Copyright BetaSoft Inc.