Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7597471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:09:51+00:00 2026-05-30T22:09:51+00:00

After an upgrade to LWP 6.04 from an older (5.8x?) version, i noticed that

  • 0

After an upgrade to LWP 6.04 from an older (5.8x?) version, i noticed that some code used in a distributed app that ran forever started breaking. I traced it to the change in handling of the \n in a POST.

On the client:

    $post_data{'good'} = qq(This is a text line);
    $post_data{'bad'} = qq(This is a first line\nThis is a second line);

    my $ua = LWP::UserAgent->new();
    my $response = $ua->post( $url, \%post_data );
    return undef if (!defined $response);

On the server:

    my $good = $q->param('good');
    my $bad = $q->param('bad');

After the client runs server gets the following:

$good on the server side as expected ends up being qq(This is a text line).
$bad, however, ends up being qq(This is a first line\r\nThis is a second line).

Is there a way to avoid this “helpful” substitution without rewriting and redeploying the massive amount of code that utilized the previous behavior of LWP::UserAgent?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:09:52+00:00Added an answer on May 30, 2026 at 10:09 pm

    https://rt.cpan.org/Public/Bug/Display.html?id=75592

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a warning that began to appear after I upgraded my app from
I've upgraded Resharper from 5 version to 6 version. After that when I type
This code used to work on Vista (and Windows XP) but after an upgrade
I have another very puzzling question that has cropped up after my upgrade from
A .NET 4.0 application needs to run without errors after system upgrade from Windows
Is there a way i can uninstall (and dont upgrade after) a previous version
I recently did an upgrade of an aging app to 0.4.7 from 0.2.6. The
I recently upgraded Xcode from 3.2 to 4.2. After the upgrade I was having
I have an app need to load photos from simulator photo library. After I
After Lion upgrade, I had to reinstall my python packages, and ran into problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.