Find Jobs
Hire Freelancers

perl code that requests a url and prints redirects

$30-100 USD

Concluído
Publicado há aproximadamente 14 anos

$30-100 USD

Pago na entrega
I need some perl code that can take a LWP::UserAgent object and do a request on an HTTP::Request object, and if the request encounters HTTP redirect headers that the user-agent follows, it should print out each of the URLs that the user-agent is redirected to. For example: my $ua = LWP::UserAgent my $request = HTTP::Request->new('GET', '[login to view URL]'); # your code goes here Then the page <[login to view URL]> redirects to [login to view URL] and that page redirects to [login to view URL] So the code should output something like: redirected to <[login to view URL]> redirected to [login to view URL] In other words, if there's more than one redirect (this example has two), the code should output each redirect, not just the last one. I think this can be done with a "callback" function or something, but I can't find how to do it. This is probably a really simple problem (the solution is probably only about two or three lines of code) so you can either submit a bid, or if you want you can even submit a solution as a comment and I'll send you a tip of it works, since it's such a small job. ## Deliverables Basically as described above. ## Platform It's probably not a platform-dependent thing, but it has to work for me on Perl 5.8.8 with CentOS 5.4.
ID do Projeto: 3283505

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 14 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
See private message.
$2 USD em 14 dias
5,0 (1 avaliação)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
Bellevue, United States
5,0
128
Método de pagamento verificado
Membro desde out. 24, 2004

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.