2015-04-02 19:29 GMT+03:00 bruce <badouglas@xxxxxxxxx>:
Hey guys. I know this isn't a fed/linux issue, but thought I might get
some pointers. This has also been posted to the wget list as well.
Trying to fetch class content from a site.
Tested the site, using firefox/firebug appears the site does a couple of calls.
Created a quick shell script to implement the test calls, but for some
reason, cant seem to generate the actual class list.
Steps:
-fire off the initial page
-select the 1st dept "accounting" - use/leave the rest of the defaults
-implement the "select" btn, to generate the backend calls.
-in the testing of the 2nd step, the test uses the actual post-data as
generated via the firefox/firebug test
The results of the 2nd call - returns the same data as the initial
call to the base page. I assume Im missing something simple, or else
the app is doing some jscript on the backend that I'm not seeing.
using -vvv for verbosity doesn't point to anything as far as I can tell.
Thoughts/pointers are welcome.
thanks
#!/bin/sh -v
#
# test shell for wget
#
# smc_curl.sh
#smc
wget -vvv --no-check-certificate --cookies=on --load-cookies=smc.lwp
--keep-session-cookies --save-cookies=smc.lwp
--user-agent="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" -O -
"https://isiscc.smc.edu/pls/apex/f?p=123:1:4004293957286646::NO:RP::"
#exit
wget -vvv --no-check-certificate --cookies=on
--load-cookies=smc.lwp --keep-session-cookies --save-cookies=smc.lwp
--referer="https://isiscc.smc.edu/pls/apex/f?p=123:1:4004293957286646::NO:RP::"
--user-agent="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" -O -
--post-data=""> "https://isiscc.smc.edu/pls/apex/wwv_flow.accept"
exit
--
Curl is better anyway. However with wget, issue is incorrect cookie (path?) reading from savefile.
Read ORA_WWV_APP_123 value from cookie savefile, and send it in raw "--header" format
wget --no-cookies --header "Cookie: ORA_WWV_APP_123=ORA_WWV-nFa8PnpRSIhvaZ1y372N5oNh" --user-agent="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" -O - --post-data="" https://isiscc.smc.edu/pls/apex/wwv_flow.accept
wget --no-cookies --header "Cookie: ORA_WWV_APP_123=ORA_WWV-nFa8PnpRSIhvaZ1y372N5oNh" --user-agent="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" -O - --post-data="" https://isiscc.smc.edu/pls/apex/wwv_flow.accept
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
-- 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