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

RE: Small contracted programming task involving an HTTP redirect



And libwww has been handy at times as well.

-----Original Message-----
From: Jason Chambers [mailto:tooger@bellsouth.net]
Sent: Wednesday, October 15, 2003 7:47 PM
To: chris@abney.info; ajug-members@www.ajug.org
Subject: Re: Small contracted programming task involving an HTTP
redirect


Chris

I am not offering my services, merely advice.

Utilities exist that appear to meet your requirements. I personally use
cURL http://curl.sourceforge.net/ but there is also wget
http://www.gnu.org/software/wget/wget.html

Hope this helps!

Jason
At 09:38 AM 10/15/2003 -0400, Chris Abney wrote:
>I would like find someone else to handle two projects that I am doing for
>someone.  If anyone is interested, send me an email.
>
>Both projects follow the same high level flow:
>1. retrieve a web page that contains a query form with a submit button
>2. "submit" the form with one data value supplied
>3. store the returned html in a file.
>They do not need GUI's and are to run on the console like a Unix utility
>or pkzip.
>
>I have already written this kind of utility once so I thought that I cold
>make small modifications to that code and charge about $150 each for the
two.
>On my attempt on one, I ran into a bug related to the HTTP redirect issue
>in step 2.
>On the other, I was stopped at step 1 because the server responds with
>"Method not allowed".
>
>This would be for pay of course.
>If you email, I can give you more information.
>
>Chris
>
>
>
>Chris Abney wrote:
>
>>Hi all,
>>I was asked to write a small utility to grab some data from the web.
>>The utility needs to do the following:
>>1. retrieve a web page that contains a query form with a submit button
>>2. "submit" the form with one data value supplied
>>3. store the returned html in a file.
>>The problem I have is with step 2.
>>When I ran through the steps on a browser using an HTTP snooping program,
>>it seemed that the server redirects the query to another location.
>>Instead of passing my supplied data to the new location, the server
>>return a code to be used.
>>The browser then sends another HTTP call to the second location using
>>this code.
>>I don't have experience programming HTTP requests that have to deal with
>>a redirect.
>>Does anyone have any ideas of a good way to handle this task?
>>
>>Chris
>>
>