The C# code converted from curl is not working #73
Replies: 6 comments
-
Hi @testkongqi Well, this is probably because |
Beta Was this translation helpful? Give feedback.
-
Just added |
Beta Was this translation helpful? Give feedback.
-
403 forbidden.
thanks for quick response.
…On Sun, Feb 6, 2022 at 2:34 PM Oleg Shevchenko ***@***.***> wrote:
Hi @testkongqi <https://github.com/testkongqi>
Well, this is probably because --referer parameter is not supported in
the converter.
Which error did you get?
—
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXUMYWFKRITXRX7ADEFU4KTUZ3ENZANCNFSM5NVW5ZXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I tried added the Referer as a header property and get 404 not found.
…On Sun, Feb 6, 2022 at 3:10 PM Oleg Shevchenko ***@***.***> wrote:
Just added --referer support. You can try again.
—
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXUMYWC5OMEYF6PMNLJBVOTUZ3ITBANCNFSM5NVW5ZXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
another question. when i tried to convert the following curl command, I got
statuscode 401 unauthorized
curl --location --request GET "https://yahoo.com/api/token?id=3343"
--header "Authorization: Basic tggdfdf".
could you take a look?
Thanks,
…On Sun, Feb 6, 2022 at 3:10 PM Oleg Shevchenko ***@***.***> wrote:
Just added --referer support. You can try again.
—
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXUMYWC5OMEYF6PMNLJBVOTUZ3ITBANCNFSM5NVW5ZXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It's pretty hard to say what's wrong with your request. |
Beta Was this translation helpful? Give feedback.
-
Your tool is great! it helps me to get restful api call responses with C# code from curl command. But the C# code from the following curl command doesn't work. Could you help me out? thanks
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" --referer https://yahoo.com/api/token -H "X-CSRFToken: dfdfffff" --data "username=dummy&password=header" --cookie "mytoken=dfgdsff" https://yahoo.com/api/token -k -D --o /dev/null
Beta Was this translation helpful? Give feedback.
All reactions