LWP gets 400, Firefox gets a 200.

I'm using LWP to get a pdf file via a form submission in a GET.

Seems very standard, I get the URLs from LiveHTTPHeaders and reconstruct
from there.

There's five or six steps leading up to this last step, logging in,
collecting cookies and variables and whatnot.
Then this last step fails with a "400 Bad Request".
(URLs have been modified to protect possible sensitive stuff).

    $url =3D
URI->new("https://ooga.bogus.com/foo/bar;jsessionid=3D$jsessionId");
    $url->query_form(
        requestor =3D> 'AGE',
        doctype =3D> 'Statement',
        docid =3D> $docid,
        token =3D> $token,
    );
    $response =3D $agent->get($url);

The funny thing is that the server replies with a page that gives me
back the URL that I constructed above, which should have gotten the PDF
file, which can then be pasted into the location line of Firefox and it
works.

Here's the constructed URL's __form__:

https://ooga.bogus.com/foo/bar;jsessionid=3D000YTYxBDdFsZG5uD:-1?requestor
=3DAGE&doctype=3DStatement&docid=3DN1NzM0LTY3MzEtWEpBMS0zRkFBQS0zMzkwOTctMT=
MyN
Tg2LTYAc5LTMtMS0wLQ%3D%3D&token=3Dd77c1fac91asdfkljad67d5

What could be different about the two processes?


Andy Ford
314-955-6647
andyford@agedwards.com



---------------------------------------------------------------------------=
----------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other=20
than the recipient.

---------------------------------------------------------------------------=
----------

0
andyford
7/6/2006 7:41:24 PM
perl.libwww 3335 articles. 0 followers. Follow

0 Replies
867 Views

Similar Articles

[PageSpeed] 25

Reply:

Similar Artilces:

RE: LWP gets 400, Firefox gets a 200.
The site could use javascript to surreptitiously change your request=2E=0D= =0AI've also seen sites that require your referrer to be set to something= =0D=0Aspecific before they give you what you want=2E=0D=0A=0D=0A=0D=0A-----= Original Message-----=0D=0AFrom: Ford, Andy [mailto:andyford@AGEDWARDS=2Eco= m] =0D=0ASent: Thursday, July 06, 2006 3:41 PM=0D=0ATo: libwww@perl=2Eorg= =0D=0ASubject: LWP gets 400, Firefox gets a 200=2E=0D=0A=0D=0AWhat could be= different about the two processes?=0D=0A=0D=0A----------------------------= -------------=0D=0A************************************...

RE: LWP gets 400, Firefox gets a 200. #4
> -----Original Message----- > From: Gedanken [mailto:gedanken@io.com]=20 > Sent: Thursday, July 06, 2006 3:47 PM > To: Ford, Andy > Cc: libwww@perl.org > Subject: RE: LWP gets 400, Firefox gets a 200. >=20 > On Thu, 6 Jul 2006, Ford, Andy wrote: >=20 > Yeah Im definitely reaching. interpolation problems are=20 > rare. Still, it=20 > wouldnt take but a second to change the var =3D> $value to a=20 > var =3D> "$value"=20 > and see if theres any change on the wire. You mean that "%3D" could be interpreted as a h...

RE: LWP gets 400, Firefox gets a 200. #3
> -----Original Message----- > From: Gedanken [mailto:gedanken@io.com]=20 > Sent: Thursday, July 06, 2006 2:53 PM > To: Worenklein, David, GCM > Cc: Ford, Andy; libwww@perl.org > Subject: RE: LWP gets 400, Firefox gets a 200. >=20 > On Thu, 6 Jul 2006, Worenklein, David, GCM wrote: >=20 > Its a long shot, but i found the %D%D at the end of one of=20 > the variables=20 > suspicious.=20 Those are %3D , URI escapes for "=3D" signs. I thought that should be what URI->new does, no? AndyF. -------------------------------------...

RE: LWP gets 400, Firefox gets a 200. #2
But wouldn't any javascript changes show up in the LiveHTTPheaders output?=20 I mean the javascript would rewrite the URL, and then I get the final thing that's sent by the browser from my LiveHTTPheaders output, no? or am I assuming too much? The referer looks just the previous page, but I set that "by hand" anyway, but that doesn't help. If LiveHTTPheaders tells me: Referer: https://bogus.com/foo/goo.jsp Then I say=20 my @headers =3D ( 'Referer' =3D> 'https://bogus.com/foo/goo.jsp' ); $response =3D $agent->get($url...

Cannot get to firefox from thunderbird-cannot get to firefox at all.
Name: Sharon O'Hara Email: familien1_at_wavecable.com Product: Firefox Summary: Cannot get to firefox from thunderbird-cannot get to firefox at all. Comments: Thunderbird freezes up, Windows offers a file an error report and I'm shut down. I got here -now- through IE - why will IE work when Firefox won't? Sharon O'Hara Browser Details: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) ...

POST GET GET GET GET... WTH?
Hi, I'm at a loss to explain this... I have an ASPX page that I can't always navigate to. When I developed the app (it's Starter Kit Portal-based), I did it on my LAN and have had no trouble accessing the page. However, upon deployment, I see the following behavior: 1. POST request goes out looking for MyForm.aspx 2. GET request for MyForm.aspx 3. GET request for MyForm.aspx 4. ... X. GET request Sometimes, the page finally loads. Other times, it just ends up blank. Many times, it doesn't load at ALL the first POST - I just get a "The pa...

Why does firefox gets laggy until you get another profile
Name: Christopher Gann Email: moreofmanatyahoodotcom Product: Firefox Summary: Why does firefox gets laggy until you get another profile Comments: firefox gets laggy until you get another new profile profile! Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 From URL: Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

LWP::Simple, get and getstore() cannot get same page as browser.
I use get and getstore() to retrieve links. However, the page I got with = =E2=80=9Cget=E2=80=9D and =E2=80=9Cgetstore()=E2=80=9D is different than th= e page I got from the browser. To debug it, I copied and pasted the link be= low to the browser=E2=80=99s address bar. Then, I view the HTML source code= from browser. I searched the keyword, offer-listing. I found nine of them.= =0A=0ABelow is one of nine keyword offer-listing I found:=0A=0A<div class= =3D"mbcOlpLink"><a class=3D"buyAction" href=3D"/gp/offer-listing/1567651151= /ref=3Ddp_olp_all_mbc?=0...

Using firefox is getting to be a pain because your popups keep me from getting on the web.
Name: betsy price Email: betsypriceatgmaildotcom Product: Firefox Summary: Using firefox is getting to be a pain because your popups keep me from getting on the web. Comments: Please just let me get on to my browser. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4 (.NET CLR 3.5.30729) From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

Sessionstore.js Keeps Getting larger, and Firefox Gets Very Sluggish
Sessionstore.js, Firefox's stored sessions file, keeps getting larger, and Firefox gets very sluggish. Sessionstore.js doesn't appear to ever get smaller on its own. On November 11, 2011, I must have started a new session, and sessionstore.js was 1 KB. Four days ago on January 2nd, it had grown to 17.9 MB, and the next day it was 18 MB. What is causing this? How can I figure it out? If I start a new session, Firefox isn't sluggish anymore, but not only do I not want to lose all of my session data, I'm also very interested in learning what's going on here. ...

trying to get a simple url page using lwp but getting a 500 error
I am using the .bat file which comes with LWP called lwp-download.bat. When I type: lwp-download http:\\oracledev1.traco.com:8001 the reponse I get is: lwp-download: 500 Can't connect to :80 (Bad hostname ' ') I this this error message no matter what I try, and being brand new to LWP and rather new to Perl, I have no idea what to try next.... Thanks for any help I receive in advance!!!! your url is not correct. it should be http:// and not http:\\ ----- Original Message ----- From: "Ken Soenen" <Ken.Soenen@TRACO.COM> To: <libwww@perl.org...

How do I get a "get mail" icon on the navigation toolbar Firefox 2.0 ?
Name: Gerald fedelem Email: gfedelematcomcastdotnet Product: Firefox Summary: How do I get a "get mail" icon on the navigation toolbar Firefox 2.0 ? Comments: How do I get a "get mail" icon on the navigation toolbar. Firefox 2.0 ? Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 ...

Get All & Get all mail
Is there any difference between these two extensions? Daniel -- _____________________________________ Daniel Royer University of Geneva daniel at royer dot ch _Daniel Royer_ spoke thusly on 11/09/2006 4:31 AM: > Is there any difference between these two extensions? I can't seem to find a "Get All" extension for Thunderbird. The closest I've found is <http://extensionroom.mozdev.org/more-info.php/getmess>, which is not written to the extension manager API, that was implemented long before Thunderbird 1.0. If that's what you were referri...

Get get HotSync to work
Hi, I'm having problems synchronizing my custom Ultra-Lite application. After a HotSync the log file looks as follows: HotSync operation started 11/06/01 03:47:36 PM Expense - sync configured to Do Nothing Outlook Calendar - sync configured to Do Nothing Outlook Contacts - sync configured to Do Nothing Outlook Tasks - sync configured to Do Nothing Outlook Notes - sync configured to Do Nothing Unable to open the stream 11/06/01 03:47:40 PM OK PalmTCS (Adaptive Server Anywhere Conduit) with 1 message(s) 11/06/01 03:47:40 PM OK System Yet, the MobilLink Server still says:...

Web resources about - LWP gets 400, Firefox gets a 200. - perl.libwww

Firefox - Wikipedia, the free encyclopedia
This article is about the web browser. For the operating system, see Firefox OS . For other uses, see Firefox (disambiguation) . web browser ...

Mozilla Firefox Web Browser — Free Download — mozilla.org
Mozilla Different by Design Proudly non-profit Innovating for you Fast, flexible, secure Download Firefox — English (US) Windows Linux Mac OS ...

Firefox Facts - best guide to add-ons, themes and tips for Firefox
Firefox Facts is the best independently run Firefox blog out there today. Learn more about how to us Firefox, add-ons, themes and news on the ...

Firefox Affiliates
Firefox Affiliate buttons are a bit of html code that you put on your website or blog to encourage visitors to your site to download Firefox. ...

Firefox OS
The latest news about Firefox OS

Firefox 13.0.1 Download - Get Mozilla Firefox
Download the new Firefox Browser for a faster, safer and better web experience - Get Firefox for your iPhone and Android - make the switch today ...

Techarger Firefox
Il est maintenant possible de supprimer des vidos sans passer par itunes. Par ben, mardi janvier le retrait de vlc de l app store videolan 5 ...

Firefox Flicks : Winners
Firefox Flicks — A video contest to tell the story of your favorite browser. Submit your entry by May 1, 2012 and win prizes.

Facebook To Mozilla: Add WebP Support To Firefox
... with the use of Google ’s WebP image format due to its smaller file sizes for photos , and now the social network is trying to get Firefox parent ...

Under the hood: Facebook Messenger for Firefox - Facebook
Facebook Engineering hat eine Notiz mit dem Titel Under the hood: Facebook Messenger for Firefox geschrieben. Du kannst den vollständigen Text ...

Resources last updated: 1/21/2016 5:13:30 AM