curl issue?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Group.

I've got a curl issue that I figured I'd post here as well, given that
this is a slow posting day for fed! Normally, I wouldn't post non fed
things here, but this is a slow day... (I've also posted this to the
curl list as well..)

Heck, I'd even send your fav bev if you were close by!!

Got a short test that "should" work. The test is doing a
curl/fetch of a page from a site that's running jscript on the back.

The test has stepped through the initial pages/using
Firefox/LiveHttpheaders to see what the network traffic is actually
doing. This is replicated in the test curl functions. The app uses
cookies/SSL, but no user/password login process..

It's actually pretty straightforward as far as I can see.

However, the test is not able to generate the target page, and in fact
seems to be running into a 302 somewhere.

The goal is is to generate the "page" after the initial pages that has
the list of the dept alphnumeric selection list.

If someone can point out what I've screwed up, much obliged.

#!/bin/sh -v
#
# test shell for wget/curl
#


#test umich
echo "" > ole.lwp

curl -vvv  -A  "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11)
Gecko/2009061118 Fedora/3.0.11-1.fc9 Firefox/3.0.11"   --cookie-jar
ole.lwp --cookie ole.lwp    -L
"https://csprod.dsc.umich.edu/services/schedofclasses?strm=2060";

curl -vvv  -A  "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11)
Gecko/2009061118 Fedora/3.0.11-1.fc9 Firefox/3.0.11"   --cookie-jar
ole.lwp --cookie ole.lwp    -L
"https://csprod.dsc.umich.edu/psp/csprodpa/EMPLOYEE/HRMS/c/COMMUNITY_ACCESS.M_SR_SC_CLS_SRCH.GBL";


curl -vvv  -A  "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11)
Gecko/2009061118 Fedora/3.0.11-1.fc9 Firefox/3.0.11"   --cookie-jar
ole.lwp --cookie ole.lwp    -L
"https://csprod.dsc.umich.edu/psc/csprodpa/EMPLOYEE/HRMS/c/COMMUNITY_ACCESS.CLASS_SEARCH.GBL";

#
# at this point, the test gets the actual page with the "correct data
# --the idea is to then get the page that would list
#   the "depts...
#
#
#exit

#
# this curl should get the page that has the list of the depts..
#   --- THIS is not working as expected...
#

curl -vvv  -A "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11)
Gecko/2009061118 Fedora/3.0.11-1.fc9 Firefox/3.0.11"   --cookie-jar
ole.lwp --cookie ole.lwp   -e
"https://csprod.dsc.umich.edu/psc/csprodpa/EMPLOYEE/HRMS/c/COMMUNITY_ACCESS.CLASS_SEARCH.GBL";
    -d "ICAJAX=1&ICNAVTYPEDROPDOWN=0&ICType=Panel&ICElementNum=0&ICStateNum=3&ICAction=CLASS_SRCH_WRK2_SSR_PB_SUBJ_SRCH%240&ICXPos=0&ICYPos=182&ResponsetoDiffFrame=-1&TargetFrameName=None&FacetPath=None&ICFocus=&ICSaveWarningFilter=0&ICChanged=-1&ICResubmit=0&ICSID=JAQZNpudU6JUmDHUTyctshyzD2bx%2Ba6C2lE%2Bmljpf1U%3D&ICActionPrompt=false&ICFind=&ICAddCount=&ICAPPCLSDATA="
 -L "https://csprod.dsc.umich.edu/psc/csprodpa/EMPLOYEE/HRMS/c/COMMUNITY_ACCESS.CLASS_SEARCH.GBL";


exit

The cookie/post data is generated from the livehttpheader results..

Thanks
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux