curl / Mailing Lists / curl-users / Single Mail

curl-users

Not able to replicate what a browser (javascript disabled) is doing

From: bruce via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 19 Dec 2017 08:02:40 -0500

Hi.

Trying to test out a couple of sites that implement javascript. The
test case for the browser - Opera is to run the browser/target site
with javascript disabled. In this case the browser returns partial
content.

I copied/modified the cmd used by the browser using the "copy as Curl"
function and have the following curl that I'm testing. However, I'm
getting a situation where the process timesout, and doesn't return any
data.

Using " https://mymobile.icc.edu/app/catalog/classSearch/" as the
target url works in different test browsers.

The test curl follows:

curl -v -A "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Firefox/38.0" --cookie-jar a.lwp --cookie a.lwp -H
'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language:
en-US,en;q=0.5' -H 'Connection: keep-alive' -H 'Host:
mymobile.icc.edu' -H 'Upgrade-Insecure-Requests: 1' -L
'https://mymobile.icc.edu/app/catalog/classSearch/'

At this point, I'm curious as to why the process hangs but the browser
(with javascript disabled) doesn't.

Any thoughts/comments??

thanks

ps. If I can resolve this I've got another diff/sim issue with another
test site as well!

thanks
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-12-19