element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) netget() translates URLs incorrectly.
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 22 replies
  • Subscribers 185 subscribers
  • Views 2805 views
  • Users 0 members are here
Related

netget() translates URLs incorrectly.

Former Member
Former Member over 12 years ago

I'm trying to use Eagle 5.11 and netget() to get some information from a webpage. The URL contains the string "%2F". When netget() sees that string, it translates it to "%252F". Is there a way to get netget() to leave the characters in a URL alone?

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to dukepro

    OK, I've tried explaining this problem as best I can. So far, two people have told me "netget() is operating correctly." So I'll turn this problem around:

     

    Can someone please send me the URL string that I can pass to netget() which will take me to this page: PIC18F14K50-I/SS Microchip Technology | PIC18F14K50-I/SS-ND | DigiKey ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 12 years ago in reply to Former Member

    Can someone please send me the URL string that I can pass to netget()

    which will take me to this page: PIC18F14K50-I/SS Microchip Technology |

    PIC18F14K50-I/SS-ND | DigiKey

    (http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND)

    ?

     

    Eagle 6.5.2 returned the Digikey page just fine for me. dlgMessageBox() won't load images, but other than that no problems whatsoever.

     

    string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND/1999472";

    string res;

     

    netget(res, url);

    dlgMessageBox(res); //ugly, but it works

     

    Eric

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 12 years ago in reply to autodeskguest

    On 02/26/2014 12:13 PM, Eric Stevens wrote:

    Can someone please send me the URL string that I can pass to netget()

    which will take me to this page: PIC18F14K50-I/SS Microchip Technology |

    PIC18F14K50-I/SS-ND | DigiKey

    (http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND)

    ?

     

    Eagle 6.5.2 returned the Digikey page just fine for me. dlgMessageBox() won't load images, but other than that no problems whatsoever.

     

    string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND/1999472";

    string res;

     

    netget(res, url);

    dlgMessageBox(res); //ugly, but it works

     

    Eric

     

     

    Ah, I just noticed that your URL may not be complete. Its missing the /1999472 at the end. Without it I get a 404. If I search via Firefox with the URL you have it gives me the correct page. If I search for PIC18F14K50-I/SS (http://www.digikey.com/product-search/en?vendor=0&keywords=PIC18F14K50-I%2FSS) it gives me the URL I used, which appears to be identical. That is a bit odd.

     

    Eric

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to autodeskguest

    You've used the wrong URL. Try it with the string "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND";

     

    The digit string at the end of the URL allows the Digikey webserver to find the page no matter what errors occur earlier in the URL. For example, the URL "http://www.digikey.com/product-detail/en/garbage/more_garbage/1999472" goes to the correct page as well. Unfortunately, I can't devine that digit string from any publicly available information like the manufacturer part number. It's an internal number generated by Digikey.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    So I guess the final take-away from this discussion is, "netget() is broken and your problem can't be fixed."

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • AnalogNotes
    0 AnalogNotes over 12 years ago in reply to Former Member

    Maybe a silly question at this stage, but which operating system are you on?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to AnalogNotes

    Windows 7 Professional, 64-bit running Eagle 5.11.0.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • AnalogNotes
    0 AnalogNotes over 12 years ago in reply to Former Member

    FWIW, I have Windows 7 Pro 64 bit with EAGLE 6.5, and I see the same results...

     

    // Works:

    string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND/1999472";

    // Doesn't work (404):

    //string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND";

    string res;

    netget(res, url);

    dlgMessageBox(res);

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to AnalogNotes

    Yes, anything that has the "1999472" digit string on the end will work even if the rest of the URL is corrupted by netget() because the Digikey webserver can use those digits to find the page in their website. I would use that to fix my problem except there's no way to calculate that number from just the manufacturer's part # or the Digikey product #.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • AnalogNotes
    0 AnalogNotes over 12 years ago in reply to Former Member

    <conspiracy>

    Of course, it's only because you're trying to connect to Digikey and not Newark...

    </conspiracy>

     

    Seriously though, I forwarded this to one of the guys at Cadsoft to see if he has any ideas...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube