Won't Fix
Last Updated: 25 Aug 2023 08:14 by ADMIN
Neil
Created on: 22 Aug 2023 06:28
Type: Bug Report
0
When Genrating the cURL via the Export Sessions

Dear Fiddler developers,

 

I was recently inspecting the Punch In and Clock Out system of our company. After I captured the POST to send the punch in packages, I try to replayed it.

The replay functions returened a valid request. It is still valid even if I export the session into curl of a bat fil. But I got a issue after I copy the code into a bigger automatic code. The server I sent report me a 543 error "Please check the shifts." And the map API returned a UTF-8 wrong decode.

 

First I thought that this is because the limitation of both Unix and Windows system, I tried to pipe all the satings into the limitation they desire, 520 as I measured in UNIX. But it did not work.

Later on I watch the debug with the bash -x for about an hour, then I realise that you, the Fiddler program actually somehow turn one % into double %%.

After I replace all the %% with single %, everything works fine.

 

My first doubt is the ChatGPT. But as I was looking through the chat history, the ansewer is no, The problem is somewhere before I ever peate the code to ChatGPT to run. So I regenerated the whole cURL code from Fiddle, and yes this fault is your issue.

 

Please keep me updated if you fix that problems. Also, maybe I am ingnorant on this common problem. I am just a noob in the holy I.T. stuffs.

Yours,

Neil.

6 comments
Neil
Posted on: 25 Aug 2023 03:40

Dear Fiddler developers,

Sorry, I read the reply up side down. My bad, sorry~

Yours,

Neil.

Neil
Posted on: 25 Aug 2023 03:37

In the attachment.

Please read my messages.

 

Also, would like to solve the issue or not it is up to you.

I should have never need to contact with you in the first place. You are pissing me off. Look what have I sent? Just a single line or a formlly letter. I am sick of with put all in but getting unevenly feedback.

ADMIN
Nick Iliev
Posted on: 23 Aug 2023 11:24

Hello Neil,

 

One thing to note is that when using Fiddler Classic to export a cURL script as a BAT file, the escape character is %. This means that if you want to add a percent sign, you need to use %%. However, if you simply execute the BAT file, the exported request will work as expected. If you need to extract the cURL script from the BAT file, you will need to remove the doubled % to normalize the output.

Sources:

https://ss64.com/nt/syntax-percent.html 

https://jeffpar.github.io/kbarchive/kb/075/Q75634/ 

Alternatively, you can use Fiddler Everywhere and select the "Copy as cURL" option, which will put the cURL command in your clipboard without any doubled percent values.

Official Fiddler Everywhere download page: https://www.telerik.com/download/fiddler-everywhere 

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Neil
Posted on: 23 Aug 2023 03:48

Dear Fiddler developers,

 

The file attachment. It tooks a lot of work to get it uploaded.

 

Yours,

Neil.

Attached Files:
Neil
Posted on: 23 Aug 2023 03:46

Dear Fiddler developers,

 

Sharing a such thing online would result in a leak of personal information, also bring shame on our company, so I'll give you another one that works the same way instead.

 

This zip made by 7-zip that contains one *.zas file, one *.bat file for you request, one text file and a *.png file for the expains.

 

====================
Correct:

Encoded

https://www.baidu.com/s?wd=%E8%BF%99%E6%98%AF%E4%B8%80%E4%B8%AA%E6%B5%8B

A search request for "这是一个测试" (Chinese: This is a test.) in URL encoded pattern.
Decoded

https://www.baidu.com/s?wd=这是一个测试

A search request for "这是一个测试" (Chinese: This is a test.) in URL decoded pattern(Orginal text).


====================
Wrong:(Jibrush)

Encoded

https://www.baidu.com/s?wd=%%E8%%BF%%99%%E6%%98%%AF%%E4%%B8%%80%%E4%%B8%%AA%%E6%%B5%%8B%%E8%%AF%%95

A search request for "这是一个测试" (Chinese: This is a test.) in URL encoded pattern. But this one is from your exported cURL.

Decoded
https://www.baidu.com/s?wd=%è%¿%™%æ%˜%¯%ä%¸%€%ä%¸%ª%æ%µ%‹%è%¯%•

A search request for "这是一个测试" (Chinese: This is a test.) in URL decoded pattern(original form). But this one is from your exported cURL.

Yours,

Neil.

ADMIN
Nick Iliev
Posted on: 22 Aug 2023 11:00

Hello Neil,

 

Thank you for contacting us! 

To assist you better, could you please share a sample HTTPS session that resulted in the poorly formatted cURL export? This will enable us to investigate the matter more accurately. 

Alternatively, you can try exporting the session as cURL using our new Fiddler Everywhere application. This application has a new feature that allows you to export sessions as cURL through the context menu > Copy > Copy as cURL. 

 

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.