Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hi Corion,

So I tried the -v option and I got some more info, which follows, but I wouldn't know how to match this to the code you posted in the other thread.

It seems to do a POST and then there seem to be some fields with some values, is that correct? Like User-Agent: curl/7.35.0

What do you think?

Steve.

* Hostname was NOT found in DNS cache * Trying xxx.xxx.xxx.xxx... % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--: +-- 0* Connected to xxx.xxx.xxx.xxx(xxx.xxx.xxx.xxx) port 8098 (#0 +) > POST /api/resultados/ HTTP/1.1 > User-Agent: curl/7.35.0 > Host: xxx.xxx.xxx.xxx:8098 > Accept: */* > Authorization: Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > Content-Length: 949 > Expect: 100-continue > Content-Type: multipart/form-data; boundary=------------------------ +daf19fd44f6a97e8 > * Done waiting for 100-continue 0 949 0 0 0 0 0 0 --:--:-- 0:00:01 --:--: +-- 0} [data not shown] < HTTP/1.1 100 Continue < HTTP/1.1 201 CREATED * Server nginx/1.1.19 is not blacklisted < Server: nginx/1.1.19 < Date: Sun, 01 Feb 2015 14:48:34 GMT < Content-Type: application/xml; charset=utf-8 < Transfer-Encoding: chunked < < [data not shown] Connection: keep-alive < Vary: Accept < X-Frame-Options: SAMEORIGIN < Allow: GET, POST, HEAD, OPTIONS < { [data not shown] 100 1142 0 193 100 949 84 416 0:00:02 0:00:02 --:--: +-- 416 100 1142 0 193 100 949 84 416 0:00:02 0:00:02 --:--: +-- 416 * Connection #0 to host xxx.xxx.xxx.xxx left intact

In reply to Re^4: XPOST syntax in WWW::Curl by Steve_BZ
in thread XPOST syntax in WWW::Curl by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2023-06-01 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?