Re: Custom headers HTTP protected site

2009-10-11 Thread Jim Ault
On Oct 11, 2009, at 11:32 AM, Josh Mellicker wrote: On Oct 9, 2009, at 2:14 PM, Jim Ault wrote: I am trying to understand how HTTP headers work with password protected sites and file downloads. Jim, I just wanted to mention cURL as an option if things don't work out to your satisfactio

Re: Custom headers HTTP protected site

2009-10-11 Thread Josh Mellicker
On Oct 9, 2009, at 2:14 PM, Jim Ault wrote: I am trying to understand how HTTP headers work with password protected sites and file downloads. Jim, I just wanted to mention cURL as an option if things don't work out to your satisfaction. With "open process" and "read from process until li

Re: Custom headers HTTP protected site

2009-10-11 Thread Jim Ault
This basicAuthString() tip definitely goes in my OnRev-CGI Info folder Of course everyone around the globe now knows my super-secret password to the American baseball statistics site for fantasy play. Now that it is the baseball off-season, who cares. And by Springtime when the season sta

Re: Custom headers HTTP protected site

2009-10-11 Thread Dave Cragg
On 11 Oct 2009, at 04:49, Jim Ault wrote: This worked for my case get "http://loginn:passwo...@www.baseballhq.com/"; get it & "members/tools/" get it & "projections/proj.php" put url it into allPitchersBlock put libURLLastHTTPHeaders() into headersToAnalyze --one of the headers is

Re: Custom headers HTTP protected site

2009-10-10 Thread Jim Ault
This worked for my case get "http://loginn:passwo...@www.baseballhq.com/"; get it & "members/tools/" get it & "projections/proj.php" put url it into allPitchersBlock put libURLLastHTTPHeaders() into headersToAnalyze --one of the headers isAuthorization: Basic cm90b3Bh

Re: Custom headers HTTP protected site

2009-10-10 Thread Sarah Reichelt
> Step one is to use a ping to domain.com/page.php to get the headers for > today > Step two is to extract the Authorization header > Step three is set the httpHeaders and put the url into a variable. I too have a need to get data from a protected https page. I can login from my browser, but when

Re: Custom headers HTTP protected site

2009-10-10 Thread Jim Ault
Yes, it does work. set the httpHeaders to "Authorization: Basic cm90b3Bhc3MyOjUzcHJpbmNlNDY=" put url "http://www.baseballhq.com/members/tools/projections/proj.php?lg=A&p=B&t=PY&ids=1&f=csv " into tData Funny how I thought I tried it before and got an empty data file, but obviously I had so

Re: Custom headers HTTP protected site

2009-10-10 Thread Dave Cragg
On 10 Oct 2009, at 00:26, Jim Ault wrote: Thanks for the note. It prompted me to try a simpler solution than trying to mimic the full browser set of headers. I just tried adding only the following: set the httpheaders to "Authorization: Basic cm90b3Bhc3MyOjUzcHJpbmNlNDY=" and it worked

Re: Custom headers HTTP protected site

2009-10-09 Thread Jim Ault
Thanks for the note. It prompted me to try a simpler solution than trying to mimic the full browser set of headers. I just tried adding only the following: set the httpheaders to "Authorization: Basic cm90b3Bhc3MyOjUzcHJpbmNlNDY=" and it worked for the web page as html. This will get me w

Re: Custom headers HTTP protected site

2009-10-09 Thread Dave Cragg
On 9 Oct 2009, at 22:14, Jim Ault wrote: Question What am I missing? I set the libURLSetCustomHTTPHeaders == those used by the actual browser but get a blank page. To set custom headers, just use the httpHeaders property. set the httpHeaders to "SomeHeader: someValue" (libURLSetCus

Custom headers HTTP protected site

2009-10-09 Thread Jim Ault
I am trying to understand how HTTP headers work with password protected sites and file downloads. I am registered with a fantasy sports pool (free) and want to access a downloadable text file. The key is to use Rev to download then to a spreadsheet. This works manually. http;//BHQlogin