Jatin
Jatin

Reputation: 31724

curl to ignore special characters

I want to use curl for a Post Request. This link tells how to do it. But what if the content inside a param has charaters like &. It disintegrates the text and assumes it as an another attribute. How to deal with such characters?

Upvotes: 1

Views: 651

Answers (2)

Zombo
Zombo

Reputation: 1

Perhaps you can URL encode them.

I have used Eric Meyer’s page with success. In your case

& = %26

Upvotes: 1

user1959825
user1959825

Reputation:

You need to encode the '&' character... dependant on which language you're coding in, there's always a way.

Upvotes: 0

Related Questions