Menu

#30 http-param in get request not handled correctly

2.1.0
closed
None
5
2025-09-06
2010-06-05
g zombi
No

for the script:

<http url="http://localhost/test.jsp">
   <http-param name="action">test</http-param>
</http>

Will create a request for

http://localhost/test.jsp?action=org.webharvest.runtime.web.HttpParamInfo@123456

instead of

http://localhost/test.jsp?action=test

The attache patch fix the issue

Discussion

  • g zombi

    g zombi - 2010-06-05

    the fix

     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • milestone: --> Backlog
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,14 @@
     for the script: 
    -<http url="http://localhost/test.jsp">
    
    -   <http-param name="action">test</http-param>
    -</http>
    -Will create a request for http://localhost/test.jsp?action=org.webharvest.runtime.web.HttpParamInfo@123456  instead of  http://localhost/test.jsp?action=test
    +
    +    <http url="http://localhost/test.jsp">
    +       <http-param name="action">test</http-param>
    +    </http>
    +
    +Will create a request for 
    +
    +    http://localhost/test.jsp?action=org.webharvest.runtime.web.HttpParamInfo@123456  
    +
    +instead of  
    +
    +    http://localhost/test.jsp?action=test
     The attache patch fix the issue
    
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • status: open --> accepted
    • assigned_to: Piotr Dyraga
    • milestone: Backlog --> 2.1.0rc1-RELEASE
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15

    Fixed http parameters values. Also fixed the way how these parameters are concatenated in order to do not append "&" at the end of request URL. Resolved for 2.1.0rc1 version - not officialy released yet, but available in release-2.1 branch.

    For the configuration below:

    <?xml version="1.0" encoding="UTF-8"?>
    <config xmlns="http://web-harvest.sourceforge.net/schema/2.1/core">
    
        <http url="http://localhost/test.jsp">
          <http-param name="pierwszy">rysiek</http-param>
          <http-param name="drugi">zklanu</http-param>
        </http>
    
    </config>
    

    Following request is executed:

    127.0.0.1 - - [15/Nov/2012:16:23:37 +0100] "GET /test.jsp?pierwszy=rysiek&drugi=zklanu HTTP/1.1" 404 465 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1"
    
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB