Current time: 06-01-2020, 04:13 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending script down to runtest.php
01-12-2013, 03:03 AM
Post: #3
RE: Sending script down to runtest.php
I have tried GET as well and here's a simpler example. Any ideas on getting this working?

sent this down:
GET /runtest.php?url=http://webwob.com/index.html&runs=1&f=xml&r=12345&fvonly=1&location=Office_wptdriver:Chrome&noimages=1&script=navigate%20http://www.webwob.com/index.html%5Cnnavigate%20http://www.webwob.com/html/faq.html HTTP/1.1

with these headers:
MIME-version: 1.0 (generated by my-application 1.2)
Content-Type: multipart/mixed

but got back:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<statusCode>400</statusCode>
<statusText>Please enter a Valid URL. <b>http://www.webwob.com/index.html\nnavigate http://www.webwob.com/html/faq.html</b> is not a valid URL</statusText>
<requestId>12345</requestId>
</response>

Again, if I simplify this to:
GET /runtest.php?url=http://webwob.com/index.html&runs=1&f=xml&r=12345&fvonly=1&location=Office_wptdriver:Chrome&noimages=1&script=navigate%20http://www.webwob.com/index.html%5Cn

that last \n is appended to the url

Any ideas on getting the '\n' used to split up the script?

This page (https://sites.google.com/a/webpagetest.o...stful-apis) doesn't give any details and line 958 on this page (http://code.google.com/p/webpagetest/sou...php?r=1614) suggests that the script should be split on "\n".

Thanks for any help on this,
Nick
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Sending script down to runtest.php - Nicholas Godfrey - 01-12-2013 03:03 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)