Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxyman fails to parse URL correctly when importing from Charles-generated cURL #2268

Open
Edwin-kanyun opened this issue Mar 3, 2025 · 6 comments
Assignees
Labels
bug Something isn't working ✅ Done Ticket is addressed and fixed.

Comments

@Edwin-kanyun
Copy link

Description

I'm encountering a problem while using the "Import from cURL" feature in Proxyman. When I paste the cURL command generated by Charles into Proxyman, the conversion process doesn't handle the URL part correctly.

Could you please provide a solution to this issue and let me know how to resolve it?

@Edwin-kanyun Edwin-kanyun added the question Further information is requested label Mar 3, 2025
@NghiaTranUIT
Copy link
Member

@Edwin-kanyun can you share with me your cURL to nghia@proxyman.com ? You can remove your sensitive key/apis.

I'd like to investigate and fix it

@NghiaTranUIT
Copy link
Member

You can workaround: Open Charles Proxy -> Select your request -> Export as HAR -> Save to your desktop -> Open this file with Proxyman -> Right click on the import requests -> Edit & Compose

@NghiaTranUIT NghiaTranUIT self-assigned this Mar 3, 2025
@NghiaTranUIT NghiaTranUIT added this to the Proxyman 5.17.0 milestone Mar 3, 2025
@NghiaTranUIT NghiaTranUIT added bug Something isn't working and removed question Further information is requested labels Mar 3, 2025
@Edwin-kanyun
Copy link
Author

@Edwin-kanyun can you share with me your cURL to nghia@proxyman.com ? You can remove your sensitive key/apis.

I'd like to investigate and fix it

Thank you!
The curl from charles is like this:

curl -H 'Host: xxx.com' -H 'content-type: application/json; charset=utf-8' -H 'user-agent: okhttp/4.10.0' --data-binary '{}' --compressed 'https://xxx.com/yyy/v2?clientTraceId=zzz'

And, the result in proxyman is like this:
Image

Many times, colleagues directly share with me the cURL text generated by Charles. I need to use the cURL to troubleshoot issues. However, when I paste the cURL text into Proxyman, the parsing fails. Therefore, I am really looking forward to Proxyman being able to directly support parsing the cURL generated by Charles.

Thank you!

@NghiaTranUIT
Copy link
Member

@Edwin-kanyun it's fixed with this Beta build: https://download.proxyman.io/beta/Proxyman_5.16.0_Fix_import_cURL_Charles_v2.dmg

import cURL from CHarles with Proxyman

It works with cURL from Charles or Google Chrome Network Tool too 👍

Sorry for the inconvenience. Please let me know if you have any problems.

@NghiaTranUIT NghiaTranUIT added the ✅ Done Ticket is addressed and fixed. label Mar 3, 2025
@Edwin-kanyun
Copy link
Author

@Edwin-kanyun it's fixed with this Beta build: https://download.proxyman.io/beta/Proxyman_5.16.0_Fix_import_cURL_Charles_v2.dmg

import cURL from CHarles with Proxyman

It works with cURL from Charles or Google Chrome Network Tool too 👍

Sorry for the inconvenience. Please let me know if you have any problems.

Thank you very much for your prompt response and for efficiently resolving the issue. Thanks again.
Additionally, I feel that the entry point for "Import from cURL" is a bit too deep. Could you consider providing a more convenient access point or a shortcut for this feature?

Alternatively, could you consider the option of directly pasting the cURL text into the URL input box in the window that opens when clicking the "Compose New HTTP/HTTPS Request" button, thereby automatically achieving cURL parsing? Postman also employs this approach. Thank you!

@NghiaTranUIT
Copy link
Member

NghiaTranUIT commented Mar 3, 2025

good idea, I will add this feature. Paste the cURL into the URL text field will work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ✅ Done Ticket is addressed and fixed.
Projects
None yet
Development

No branches or pull requests

2 participants