curl-users
Re: curl prob
Date: Wed, 10 Jun 2015 08:57:54 +0200
On Tue, Jun 09, 2015 at 09:37:36PM -0400, bruce wrote:
> Got an issue, probably subtle that I can't seem to wrap my hands around.
>
> A target site can be accessed via the firefox/opera browser. As far as
> I can tell, the traffic/cookies/headers are all doable.
>
> I've crafted a test bash/curl but I run into an issue with the process
> doing some kind of redirect and the process appears to reset cookies,
> and it fails!
So, is the request failing because of a missing cookie?
> The target site www.osu.edu
>
> # the actions for the browser:
> # clear all osu cookies/cache
> # https://www.osu.edu
> # https://courses.osu.edu/psp/csosuct/EMPLOYEE/PUB/c/COMMUNITY_ACCESS.CLASS_SEARCH.GBL
> # https://courses.osu.edu/psc/csosuct/EMPLOYEE/PUB/c/COMMUNITY_ACCESS.CLASS_SEARCH.GBL
> # -then, select the "AdditionalSearchCriteria" BTN
>
> In trying to mimic this, I crafted the required curls, to have the
> required headers/cookie files, etc..
Yet here you say you have the required cookie—or are you only talking about
including the -c option?
> I can post what I created if anyone has bandwidth to take a look.
>
> Like I said, I'm sure it's something subtle, but it's killin' me!
Compare the headers that curl sends at each step vs that of a browser. At some
point you will see a difference. Some of the differences may be benign, but
some are not. Your task is to reduce the set differences until the request
works!
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-06-10